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
};
The type for the implementation of a SubApp using the React framework.