React Corsair - v0.0.10
    Preparing search index...

    Function useInlineRoute

    • Returns the controller of the route that is matched inline.

      Parameters

      • to: To

        The location to render.

      Returns null | RouteController<any, any, any>

      The controller of the matched route, or null if no route matched the provided location.

      // Matches fooRoute using the router passed to the enclosing RouteProvider
      const fooController = useInlineRoute(fooRoute);

      fooController !== null && <RouteOutlet controller={fooController} />