vbridge
v3.0.0
Published
A modular framework based on VirtualDom, ImmutableJS and DomDelegator
Downloads
6
Readme
vBridge
A modular collection of libraries that embrace the component like pattern of application building using ImmutableJS, Virtual-DOM, and HyperScript. Inspired by Mercury and allows the implementor to choose their own eventing/routing system, Bridge
just focuses on state and rendering.
var app = require('vbridge');
var h = app.h;
var initialState = {
title: 'Hello World'
};
var state = app(document.body, initialState, function render(state) {
return app.h('h1', state.get('title'));
});
The state is an ImmutableJS Cursor which enables you to get and set based on getters and setters.
What about events and routing?
- page.js works great with bridge and there are some examples to take a look. =======
Install
npm install vbridge