📄️ Introduction
Create router
📄️ Route
Use the Route component.
📄️ Path parameters
Non-exact paths can be matched using path parameters.
📄️ Match data
The useRoute and useRouteMatch hooks return the following data.
📄️ Exclusive routes
To match only one route from a set, wrap the Route components in a Routes parent.
📄️ Nested routes
The leading slash can be omitted from a nested route to make the pattern relative to a parent pattern (without the trailing wildcard).
📄️ Navigate on click
A useNavigate hook is provided which returns a navigation callback. Or a Link component.
📄️ Redirect on mount
The Redirect component can be used to replace the current history entry as soon as it is mounted. The history entry is always replaced (not pushed) to avoid blocking back navigation.