REACTE ROUTER COMO ENVIAR DADOS

props.history.push('/other-page', { id: 7, color: 'green' }))

Then, you can access the state data in '/other-page' via:

props.location.state
Testy Tarsier