Stone.js API
    Preparing search index...

    Variable buildAppComponentConst

    buildAppComponent: (
        event: ReactIncomingEvent,
        container: IContainer,
        component?: ElementType,
        layout?: unknown,
        data?: any,
        statusCode?: number,
        error?: any,
    ) => Promise<ReactNode>

    Build the React application for the current route. Or for the main handler if the route is not defined.

    Type Declaration

      • (
            event: ReactIncomingEvent,
            container: IContainer,
            component?: ElementType,
            layout?: unknown,
            data?: any,
            statusCode?: number,
            error?: any,
        ): Promise<ReactNode>
      • Parameters

        • event: ReactIncomingEvent

          ReactIncomingEvent

        • container: IContainer

          Service Container

        • Optionalcomponent: ElementType

          The component response.

        • Optionallayout: unknown

          The layout response.

        • Optionaldata: any

          The data to pass to the component.

        • OptionalstatusCode: number
        • Optionalerror: any

        Returns Promise<ReactNode>

        The resolved ReactNode.