diff --git a/packages/xarc-react/src/browser/index.tsx b/packages/xarc-react/src/browser/index.tsx index 867bd155f..0779d6fb3 100644 --- a/packages/xarc-react/src/browser/index.tsx +++ b/packages/xarc-react/src/browser/index.tsx @@ -17,6 +17,7 @@ import { ReactClientRenderPipeline } from "./react-render-pipeline"; export * from "../common"; export * from "./feat-static-props-browser"; export * from "./subapp-as-component"; +export { AppContext } from "../common/app-context"; export { appContextFeature }; /** diff --git a/packages/xarc-react/src/common/index.ts b/packages/xarc-react/src/common/index.ts index 465c1e3ed..b4b2fd608 100644 --- a/packages/xarc-react/src/common/index.ts +++ b/packages/xarc-react/src/common/index.ts @@ -16,13 +16,12 @@ export { xarcV2 } from "@xarc/subapp"; * ```tsx * import { ReactSubApp, React } from "@xarc/react"; * - * const Sample = () =>
sample react component
+ * const Sample = () =>
sample react component
; * - * export subapp: ReactSubApp = { + * export const subapp: ReactSubApp = { * Component: Sample - * } + * }; * ``` - * */ export type ReactSubApp = SubApp; diff --git a/packages/xarc-react/src/node/feat-app-context-node.tsx b/packages/xarc-react/src/node/feat-app-context-node.tsx index 7cc8c6bc4..aa2e85d16 100644 --- a/packages/xarc-react/src/node/feat-app-context-node.tsx +++ b/packages/xarc-react/src/node/feat-app-context-node.tsx @@ -32,12 +32,10 @@ import { * ); * }; * - * export subapp: ReactSubApp = { + * export const subapp: ReactSubApp = { * Component: Sample, - * wantFeatures: [ - * appContextFeature() - * ] - * } + * wantFeatures: [appContextFeature()], + * }; * ``` * * @param options - app context feature options diff --git a/packages/xarc-react/src/node/index.ts b/packages/xarc-react/src/node/index.ts index cdd73d953..a7216e57d 100644 --- a/packages/xarc-react/src/node/index.ts +++ b/packages/xarc-react/src/node/index.ts @@ -20,6 +20,7 @@ export * from "../common/index"; export * from "@xarc/tag-renderer"; export * from "./feat-static-props-node"; export * from "./subapp-as-component"; +export { AppContext } from "../common/app-context"; export { SSRReactLib, subAppReady, loadSubApp, appContextFeature, RenderOptions, PageRenderer }; /**