wvl / rrouter

Declarative routing layer for React applications

Home Page:http://andreypopp.github.io/rrouter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rrouter

RRouter is a declarative routing layer for React applications.

The usage is as simple as:

var React = require('react')
var RRouter = require('rrouter')
var Route = RRouter.Route

var routes = (
  <Route>
    <Route path="/" view={MainPage} />
    <Route path="/about" view={AboutPage} />
  </Route>
)

RRouter.start(routes, function(view) {
  React.renderComponent(view, document.body)
})

See documentation for details.

About

Declarative routing layer for React applications

http://andreypopp.github.io/rrouter/

License:MIT License