nested-router

0.0.2 • Public • Published

nested-router

I'm just exploring ...

  • looking for the essence of nested routing
  • stateless (pure functions)
// ES6
var { match, map } = require('nested-router');
 
var parent = () => 'root';
var child1 = () => 'child1';
var child2 = () => 'child2';
var grandchild = () => 'grandchild';
 
// map some routes
var routes = map((match) => {
  match('/', parent, (match) => {
    
  });
});

Readme

Keywords

none

Package Sidebar

Install

npm i nested-router

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ryanflorence