AppComponent
The root component of the app.
The root component of the app. It receives the routed page as children and renders it inside
its own layout. Declared with a never parameter, like route components, so a component typed
with any props shape is accepted: (props: { children?: JSX.Element }), () or
(props: { children?: JSX.Element; title: string }). The server manifest (App) and
hydrateDusk({ App }) take the same shape, so one component serves both.
Import#
ts
import type { AppComponent } from "@shadow-js/dusk/server";
Signature#
ts
type AppComponent = (props: never) => unknown