Gunakan Params di Komponen Berbasis Kelas

<Route exact path="/details/:id" render={(props) => <DetailsPage globalStore={globalStore} {...props} /> } />
Real Rat