score:1

<Route exact path="/mypath" component={withRouter(MyComponent)} />

Related Query

More Query from same tag