DEV Community

Discussion on: Dynamic Pages using React Router

Collapse
richardrobberse profile image
Richard Robberse

Small optimization: you could use the useParams() hook to get the params instead of using props.match.params.

Collapse
supunkavinda profile image
Supun Kavinda

You said what I was going to say ;)