score:2

Accepted answer

for route which has dynamic value involved, you will need to add a colon to that parameter. so your route will look like this:

<route path="/edit/:id" component={editexercise} />

check this for reference: https://reacttraining.com/react-router/web/api/route/component

hope this helps!


Related Query

More Query from same tag