function / @typed/react

routeComponent

Adapts a React component to a Typed matcher handler, preserving reactive params and route-local services.

Package version
1.0.0-beta.13
Category
function

Import

import { routeComponent } from "@typed/react";

Signatures

export declare function routeComponent<P extends object>(component: ComponentType<P>, options?: ViewOptions): (params: RefSubject.RefSubject<P>) => Fx.Fx<import("@typed/template/RenderEvent").RenderEvent, import("./view.js").ReactRenderError, Scope.Scope | import("@typed/template/RenderTemplate").RenderTemplate | import("@typed/id/RandomValues").RandomValues>;

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source