红联Linux门户
Linux帮助

React Router v2.0.0-rc4发布,ReactJS路由解决方案

发布时间:2015-12-31 09:20:46来源:红联作者:baihuo
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

React Router 一个用于 React.js 的路由解决方案(routing solution)。它轻松可以同步你的 app 和 URL,同时给嵌套,转换,和服务端渲染一流的支持。

来自:开源中国社区
文章评论

共有 0 条评论