foundersandcoders / nuclear-router

Small routing system for nuclear

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
}

About

Small routing system for nuclear

License:MIT License


Languages

Language:JavaScript 100.0%