# Type alias RecoilFeatureOptions

RecoilFeatureOptions: {
React: Partial<{
createElement: unknown;
}>;
prepare(initialState): Promise<any>;
}

options for recoil feature

#### Type declaration

- ##### React: Partial<{
  createElement: unknown;
  }>

  The React module.

  This is needed for the recoil feature to wrap subapp's component inside the recoil Provider component.

- ##### prepare:function

  - prepare(initialState): Promise<any>

  - prepare recoil initial state

    #### Parameters

    - initialState: any

      when SSR sent initialState used, it will be passed. The client `prepare` can just return `{initialState}` as is.

    #### Returns Promise<any>

    Promise<{initialState: any}>

    - Defined in packages/xarc-react-recoil/src/common/index.tsx:29

- Defined in packages/xarc-react-recoil/src/common/index.tsx:12