In the process of upgrading to React-Router 1, I am no longer able to view any child routes. What is causing going to /about
to show the same thing as going to /
in the below sample code?
import React from 'react/addons';
import {Route, Router} from 'react-router';
var App = React.createClass({
render: function() {
console.log(this.props.children);
return (
<div id='app'>
Testing!
{this.props.children}
</div>
);
}
});
var About = React.createClass({
render: function() {
return (
<h1>About</h1>
);
}
});
React.render((
<Router>
<Route path='/' component={App}>
<Route path='/about' component={About} />
</Route>
</Router>
), document.body);