illimi-runtime
v1.0.0-b
Published
Illimi Runtime - DOM Renderer and jQuery Bridge
Downloads
199
Readme
illimi-runtime
Runtime engine for Illimi apps: rendering, directives, router, state helpers, and providers.
Install
npm install illimi-runtimeMain APIs
mount,patch,hydratecreateRoutercreateStorecreateStorageProvider,createStorageClient
Router Example
import { createRouter } from 'illimi-runtime';
createRouter({
root: document.getElementById('app')!,
routes: [
{ path: '/', page: () => import('./pages/home.html') },
{ path: '/user/:id', page: () => import('./pages/user.html') }
]
}).start();State Example
import { createStore } from 'illimi-runtime';
const counter = createStore({ count: 0 });
counter.patch({ count: counter.get().count + 1 });License
MIT
