apprun
Version:
JavaScript library that has Elm inspired architecture, event pub-sub and components
26 lines (22 loc) • 720 B
text/typescript
import app from './apprun'
import { safeGlobalAssign, SafeGlobalContext } from './type-utils';
export {
app, Component, View, Action, Update, on, update, event, EventOptions,
customElement, CustomElementOptions,
ROUTER_404_EVENT, ROUTER_EVENT, safeHTML
} from './apprun'
import { createElement, render, Fragment, html, svg, run } from './vdom-lit-html';
export { html, svg, render, run }
app.createElement = createElement;
app.render = render;
app.Fragment = Fragment;
export default app;
if (typeof window === 'object') {
const globalWindow = window as SafeGlobalContext;
safeGlobalAssign(globalWindow, {
'React': globalWindow['_React'] || app,
'html': html,
'svg': svg,
'run': run
});
}