get data from url using react

JavaScript
this.props.match.params.id<Route path="/users/:id" component={UserPage}/> 
Source

Also in JavaScript: