# Function createDynamicComponent

- createDynamicComponent(optDef, options?): ((props) => Element)

- create a dynamic component for the React framework (node.js version)

  #### Parameters

  - optDef: SubAppOptions | SubAppDef

    SubAppOptions or SubAppDef

  - options: CreateComponentOptions = {}

    create component options

  #### Returns ((props) => Element)

  a React component that will be dynamic import

  - - (props): Element

    - #### Parameters

      - props: any

      #### Returns Element

  - Defined in packages/xarc-react/src/node/index.ts:89