Releases: remix-run/react-router
Releases · remix-run/react-router
v0.5.0
We brought back <Routes/>
.
// 0.4.x
var routes = (
<Route handler={App} location="history">
<Route name="about" handler="about"/>
</Route>
);
// 0.5.x
var routes = (
<Routes location="history">
<Route handler={App}>
<Route name="about" handler="about"/>
</Route>
</Routes>
);
Changes
- 5af49d4 [changed] Split
<Routes>
component from<Route>
v0.4.2
v0.4.1
v0.4.0
v0.3.5
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
- React
0.11.x
is now required. this.props.activeRoute
becamethis.props.activeRouteHandler()
// 0.2.x
var App = React.createClass({
render: function () {
return (
<div>
{this.props.activeRoute}
</div>
);
}
});
// 0.3.x
var App = React.createClass({
render: function () {
// now you can send extra props to the active route handler
// and use the new jsx syntax
// <this.props.activeRouteHandler extraProp={something}/>
return (
<div>
{this.props.activeRouteHandler()}
</div>
);
}
});
Changes
- e827870 [added] bower support
- 58e7b98 [changed] activeRoute -> activeRouteHandler
- 0177cdd [fixed] Pass the correct component instance to willTransitionFrom hooks
- 3b590e0 [changed] Upgrade to React 0.11.0
- 51e1be2 [fixed] Use peerDeps
- a8df2f0 [added] Browser builds for version 0.2.1
- bb066b8 [added] Browser build script
- baf79b6 [fixed] Avoid some warnings
- 8d30552 [changed] README to make use of activeRoute clearer in JSX.
- 991dede [changed] activeRoute is a function that returns null when no child routes are active.
- 73570ed [changed] activeRoute can render with props and children.
- 8562482 [added] ActiveState mixin
- 616f8bf [changed] Preserve forward slashes in URL params
- 6c74c69 [changed] Combine URL helpers into URL module