alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
14 lines (12 loc) • 475 B
text/typescript
import type { ReactNode } from "react";
/**
* Extension point letting any module contribute root-level React nodes that
* render on every page (siblings of the page view, inside AlephaContext).
*
* A module pushes into `rootComponents` from its `register` hook; the array
* is rendered by `ReactPageProvider.root()`. SSR-safe (same element feeds
* server render + client hydrate).
*/
export class RootComponentsProvider {
public rootComponents: ReactNode[] = [];
}