Skip to content

Instantly share code, notes, and snippets.

@dandorman
dandorman / route.js
Last active August 29, 2015 14:01 — forked from ryanflorence/route.js
var Route = React.createClass({ /* magic */ }); // not necessary, handled my Routed's magic
var Link = React.createClass({ /* magic */ });
var Routed = { /* magic */ };
var App = React.createClass({
mixins: [Routed],
render: function() {
return (
<Root path="/">