# Function subAppInlineComponent

- subAppInlineComponent(subapp, options?): {
  loadOptions: LoadSubAppOptions;
  (): Element;
  }

- 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

  - subapp: SubAppDef
  - options: SubAppInlineOptions = {}

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

  A react component to be inlined in another subapp

  - - (): Element

    - #### Returns Element

  - ##### loadOptions: LoadSubAppOptions

  - Defined in packages/xarc-react/src/node/subapp-as-component.tsx:55