vbridge

3.0.0 • Public • Published

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

In the Wild

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    2
  • 2.0.0
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vbridge

Weekly Downloads

3

Version

3.0.0

License

MIT

Last publish

Collaborators

  • twilson63