Skip to content

twilson63/vbridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Virtual-Dom, ImmutableJS, Hyperscript, modular library

Resources

Stars

Watchers

Forks

Packages

No packages published