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

jopen 9年前


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.

  • Addedrenderprop toRouter

  • Added singletonbrowserHistoryandhashHistory

  • AddedcreateMemoryHistory

  • Deprecated all mixins

  • Replacedcontext.historywithcontext.router

  • Deprecated Route Componentprops.history

  • Deprecatedcontext.location

rc3:

  • Rebuilt withhistorycorrectly included.

  • Don’t createbrowserHistoryon the server

rc4:

  • Also do not create ahashHistoryon the server.

更多内容请看:https://github.com/rackt/react-router/releases

来自: http://www.oschina.net/news/69504/react-router-2-0-0rc4