score:0

Accepted answer
import { withRouter } from 'react-router-dom'
....
//code 
....
export default withRouter(yourcomponent)

score:0

const { flag } = props.location.state

Related Query

More Query from same tag