ReactJS 路由解決方案,React Router v2.0.0-rc4 發布

jopen 8年前發布 | 6K 次閱讀


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

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!