Props
Optionalcontext?: unknownProvides 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.
React element for the rendered outlet or null if no child route matches.
Renders the matching child route of a parent route or nothing if no child route matches.