Im new to react and even newer to react-router and i create a react app which contains a few routes but some routes need the same data (props). I want to transfer those prop
If you redirect using:
this.props.history.push('/booking', { myProp: this.props.myProp, foo: 'bar' })
Then, in /booking page, you can access the variables like so:
/booking
console.log(this.props.location.state) /* { myProp: '...', foo: 'bar' } */