1.0.5 • Published 8 years ago
w3-reflex v1.0.5
Reflex
Simple Reactive Framework
This library or framework takes a render function that must return a virtual-dom tree and a simple function that takes an event and returns state, it is called a transform function.
Example
const app = require('reflex')
const render = function (emitter) {
return function (state) {
return h('h1', [state.title])
}
}
// transform uses mostjs streams for async
const transform = function (event) {
var state = {}
return most.of(state )
}
app(render, transform)