Lilact
    Preparing search index...

    Function lazy

    • Wrapper that enables async, code-split component loading. lazy should be used outside the component definintion or it will produce new components on each rerender.

      Parameters

      • factory: any

        A function with no arguments that returns a Promise. The promise must resolve to a module whose module.exports.default is a Lilact component or otherwise it will be whatever the module.exports is set to.

      Returns (props: any) => HTMLComponent

      A Lilact component that should be rendered inside a Suspense boundary.