omom
Bite-sized virtual-dom
Why omom
- It is based on the blazing fast virtual-dom implementation.
- It provides optional unidirectional event dispatcher, inspired by Flux and alt.js.
- It has no opinion on the tool you choose e.g. omom + immstruct, omom + Backbone.
- It is a very small collection of functions, no mixin, no inheritance, just functional composition.
Example
TodoMVC
- omom + immstruct
- omom + pojo [coming soon]
- omom + Backbone [coming soon]
- omom + router [coming soon]
Hello world
/** @jsx h */ let List = let { return <div className=className> <List items=items /> </div> } let createInitialState = let update = // performs update
Installation
npm install --save omom
Running Tests
Tests are served by zuul. Run make test
and visit http://localhost:8080/__zuul.
Inspirations
- Rob Pike's state functions
- Mike Bostock's Reusable Charts
- virtual-dom
- mercury
- deku