• Allow you to nest one subapp within another.

    This is different from createDynamicComponent, which just use subapp to handle dynamic import of the component from a subapp.

    The component this creates keeps the full features of a subapp, such as data preparing, routing, etc.

    • If ssr is true, then prepareOnly for an inlined subapp is always true because it will be rendered as part of its parent subapp instead.

    Parameters

    Returns {
        loadOptions: LoadSubAppOptions;
        (): Element;
    }

    A react component to be inlined in another subapp

      • (): Element
      • Returns Element

    • loadOptions: LoadSubAppOptions