Stone.js API
    Preparing search index...

    Interface IPage<IncomingEventType, OutgoingResponseType>

    Represents a page.

    interface IPage<
        IncomingEventType extends ReactIncomingEvent,
        OutgoingResponseType = unknown,
    > {
        handle?: FunctionalEventHandler<IncomingEventType, OutgoingResponseType>;
        head?: (context: PageHeadContext<any>) => Promiseable<HeadContext>;
        render: (context: PageRenderContext<any>) => ReactNode;
    }

    Type Parameters

    • IncomingEventType extends ReactIncomingEvent

      The type representing the incoming event.

    • OutgoingResponseType = unknown

      The type representing the outgoing response.

    Index
    handle?: FunctionalEventHandler<IncomingEventType, OutgoingResponseType>
    head?: (context: PageHeadContext<any>) => Promiseable<HeadContext>
    render: (context: PageRenderContext<any>) => ReactNode