# Type alias ReactSubApp

ReactSubApp: SubApp<Component | FunctionComponent>

The type for the implementation of a SubApp using the React framework.

#### Remark

See declareSubApp for more example to declare a subapp from the implementation.

Example:

    import { ReactSubApp, React } from "@xarc/react";

    const Sample = () => <div>sample react component</div>;

    export const subapp: ReactSubApp = {
      Component: Sample
    };

- Defined in packages/xarc-react/src/common/index.ts:26