UNPKG

@rws-framework/client

Version:

This package provides the core client-side framework for Realtime Web Suit (RWS), enabling modular, asynchronous web components, state management, and integration with backend services. It is located in `.dev/client`.

18 lines (13 loc) 605 B
import {DI, Container, Registration } from '../../foundation/rws-foundation'; import type { InterfaceSymbol, Key } from '@microsoft/fast-foundation/dist/esm/di/di'; import {loadRWSRichWindow} from '../types/RWSWindow'; export default () => { const richWindow = loadRWSRichWindow(); if(richWindow.RWS.container){ return richWindow.RWS.container; } richWindow.RWS.container = DI.getOrCreateDOMContainer(richWindow.RWS.container_node); return richWindow.RWS.container; }; export { DI, Container, Registration } export type { InterfaceSymbol, Key }