Skip to main content

useOutletContext

useOutletContext<Context>(): Context

Returns the context (if provided) for the child route at this level of the route
hierarchy.

Properties

This element is often used without passing props