Returns the controller of the route that is matched inline.
The location to render.
The controller of the matched route, or null if no route matched the provided location.
null
// Matches fooRoute using the router passed to the enclosing RouteProviderconst fooController = useInlineRoute(fooRoute);fooController !== null && <RouteOutlet controller={fooController} /> Copy
// Matches fooRoute using the router passed to the enclosing RouteProviderconst fooController = useInlineRoute(fooRoute);fooController !== null && <RouteOutlet controller={fooController} />
RouteOutlet
Returns the controller of the route that is matched inline.