Routetype
RouteComponent | AbsolutePath | ReactElement
| Type | |
|---|---|
RouteComponent | React component usable as a route value — a function or class component accepting RouteProps. |
AbsolutePath | Absolute path string starting with a / slash. |
ReactElement |
Valid route values:
RouteComponent— rendered as<Component {...params}/>with merged placeholder + query params.AbsolutePathstring — triggers a redirect to that path.ReactElement— rendered as-is (use for layout-wrapping a nested<Router>inside).