OutletProps
react-router

OutletProps interface

Properties

context

Type: unknown

Provides a context value to the element tree below the outlet. Use when the parent route needs to provide values to child routes.

<Outlet context={myContextValue} />

Access the context with useOutletContext.

Docs and examples CC 4.0