luminite
v0.1.3
Published
Tiny modern JS Framework (only ~3KB minified) with *reactivity* power to create state-based UI component with familiar API.
Downloads
3
Readme
luminite.js
Tiny modern JS Framework (only ~3KB minified) with reactivity power to create state-based UI component with familiar API.
Inspired by Vue & Mithrill.
Quick Start
HTML:
<div id="app"></div>
JavaScript:
import { luminite, m } from 'luminite'
const app = new luminite({
el: '#app',
data: {
count: 0
},
view: (data) => m('div', [
m('p', `Count: ${data.count}`),
m('button', { onClick: () => data.count++ }, '+1'),
m('button', { onClick: () => data.count-- }, '-1'),
])
})
app.render()