nuclear-router

0.0.5 • Public • Published

nuclear-router

Small routing system for nuclear. Nuclear-router has a really simple API and is really small.

Example

var router = require("nuclear-router");
 
 
var state = {
    route: observ("")
};
 
 
var route = router(state);
 
 
route("/", home);
 
 
function home (stateInjected) {
    
    // return some virtual dom
}

Package Sidebar

Install

npm i nuclear-router

Weekly Downloads

5

Version

0.0.5

License

MIT

Last publish

Collaborators

  • bes