Stone.js API
    Preparing search index...

    Variable buildPageComponentConst

    buildPageComponent: (
        event: ReactIncomingEvent,
        container: IContainer,
        component?: ElementType,
        data?: any,
        statusCode?: number,
        error?: any,
    ) => ReactNode

    Get response component in the current route. If not defined, return an empty object.

    Type Declaration

      • (
            event: ReactIncomingEvent,
            container: IContainer,
            component?: ElementType,
            data?: any,
            statusCode?: number,
            error?: any,
        ): ReactNode
      • Parameters

        • event: ReactIncomingEvent

          ReactIncomingEvent

        • container: IContainer

          Service Container

        • Optionalcomponent: ElementType

          The component response.

        • Optionaldata: any

          The data to pass to the component.

        • OptionalstatusCode: number

          The status code of the error.

        • Optionalerror: any

          The error object.

        Returns ReactNode

        The resolved component element.