← React Intermediate Questions - Set 7 Q62

How can you handle dynamic routing in React?

React Intermediate Questions - Set 7

Example

<Route path="/:section/:id" element={<Page />} />
const { section, id } = useParams();

What to notice

← Back to the question list