OutletProps
Context and optional children for a React or Preact Outlet.
Compatibility
ReactAvailable in this renderer's browser integration.
React SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
PreactAvailable in this renderer's browser integration.
Preact SSRAvailable to this renderer's SSR integration; browser event handlers run after hydration.
Import from @kasperrt/smolter/react @kasperrt/smolter/preact
Signature
interface OutletProps {
context?: unknown;
children?: ReactNode;
}Fields
context supplies a value to descendant useOutletContext calls. Null or undefined inherits the ancestor context. children overrides rendering the current route when provided.
<Outlet context={{ canEdit: true }} />Fields
context
context?: unknown;children
children?: ReactNode;