@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`.
16 lines (11 loc) • 525 B
text/typescript
import {DI, Container, Registration, InterfaceSymbol, Key } from '../../foundation/rws-foundation';
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, InterfaceSymbol, Key }