发布于 2015-12-31 00:23:06 | 389 次阅读 | 评论: 0 | 来源: 网友投递
React Router 路由解决方案
React Router 一个用于 React.js 的路由解决方案(routing solution)。它轻松可以同步你的 app 和 URL,同时给嵌套,转换,和服务端渲染一流的支持。
React Router v2.0.0-rc4 发布,rc2 -rc 4更新内容如下:
rc2:
Lots of stuff! Here's the summary.
Added render prop to Router
Added singleton browserHistory and hashHistory
Added createMemoryHistory
Deprecated all mixins
Replaced context.history with context.router
Deprecated Route Component props.history
Deprecated context.location
rc3:
Rebuilt with history correctly included.
Don’t create browserHistory on the server
rc4:
Also do not create a hashHistory on the server.
更多内容请看:https://github.com/rackt/react-router/releases