Skip to main content

useOutlet

useOutlet

Framework Data Declarative

Summary

Reference Documentation ↗

Returns the element for the child route at this level of the route hierarchy. Used internally by <Outlet> to render child routes.

Signature

function useOutlet(context?: unknown): React.ReactElement | null

Params

context

The context to pass to the outlet

Returns

The child route element or null if no child routes match

Translation © 2026 fanyi.dev · Original © 2026 React Training LLC, Remix Software Inc., Shopify Inc. (MIT)