const rootEl = document.getElementById(\'root\'); ReactDOM.render(
I used this to access the ID in my component:
And in the detail component:
export default class DetailsPage extends Component { render() { return( {this.props.match.params.id} ) } }
This will render any ID inside an h2, hope that helps someone.