const rootEl = document.getElementById(\'root\'); ReactDOM.render(
Use render method:
{ }} />
And you should be able to access the id using:
this.props.id
Inside the DetailsPage component