react-routes
Lightweight isomorphic HTML5 router for ReactJS.
Setup
Client:
//- index.js;;;;;; let routes = path: '/about' handler: About props: {} path: '/stats' handler: Stats path: '/' handler: Root; ReactDom;
//- index.styl
Server:
//- index.js;;;; render; { let html = ReactDomServer; res;}
//- index.jadedoctype htmlhtml(lang="en") head title React App link(href="#{assetPath('bundle.css')}" media="all" rel="stylesheet" type="text/css") body #app!= html script(src="#{assetPath('bundle.js')}" type="text/javascript" async)