Interface ReactFeatureApp

The recommended way of writing a Feature App for a React integrator.

Hierarchy

Properties

Methods

Properties

loadingPromise?: Promise<void>

Client-side only: A Feature App can define a promise that is resolved when it is ready to render its content, e.g. after fetching required data first. If the integrator has defined a loading UI, it will be rendered until the promise is resolved. For a similar behaviour during server-side rendering, one must handle this using the async-ssr-manager.

Methods

  • A React Feature App must define a render method that returns a React element. Since this element is directly rendered by React, the standard React lifecyle methods can be used (if render returns an instance of a React ComponentClass).

    Returns ReactNode

Generated using TypeDoc