# Class SSRReactLib

implementation of server side rendering support for React

#### Implements

- ServerFrameworkLib

- Defined in packages/xarc-react/src/node/react-lib-node.tsx:16

#####
Index

### Constructors

constructor

### Methods

handleSSR
handleSSRSync
prepareSSR?

## Constructors

### constructor

- new SSRReactLib(): SSRReactLib

- #### Returns SSRReactLib

  - Defined in packages/xarc-react/src/node/react-lib-node.tsx:17

## Methods

### handleSSR

- handleSSR(data): Promise<{
  content: string;
  props: any;
  }>

- Handle server side rendering for subapps

  #### Parameters

  - data: SubAppSSRData

    SSR server data

  #### Returns Promise<{
  content: string;
  props: any;
  }>

  SSR result

  Implementation of ServerFrameworkLib.handleSSR

  - Defined in packages/xarc-react/src/node/react-lib-node.tsx:62

### handleSSRSync

- handleSSRSync(data, prepResult): SubAppSSRResult

- #### Parameters

  - data: SubAppSSRData
  - prepResult: SubAppFeatureResult

  #### Returns SubAppSSRResult

  Implementation of ServerFrameworkLib.handleSSRSync

  - Defined in packages/xarc-react/src/node/react-lib-node.tsx:70

### `Optional` prepareSSR

- prepareSSR(data): Promise<SubAppFeatureResult>

- #### Parameters

  - data: SubAppSSRData

  #### Returns Promise<SubAppFeatureResult>

  Implementation of ServerFrameworkLib.prepareSSR

  - Defined in packages/xarc-react/src/node/react-lib-node.tsx:21