const rootEl = document.getElementById(\'root\'); ReactDOM.render(
if you are using class component, you are most likely to use GSerjo suggestion. Pass in the params via props to your target component:
exact path="/problem/:problemId" render={props => }