# Function initSubApp

- initSubApp(setupContext, setupToken): {
  process(context): string;
  }

- Initialize all the up front code required for running subapps in the browser.

  #### Parameters

  - setupContext: any

    context for setup

  - setupToken: Partial<{
    props: InitProps;
    }>

    token for setup

  #### Returns {
  process(context): string;
  }

  data with template process callback

  - ##### process:function

    - process(context): string

    - #### Parameters

      - context: any

      #### Returns string

      - Defined in node/init-v2.ts:185
  - Defined in node/init-v2.ts:173