React v0.14 RC 發布,棄用 react-tools

jopen 9年前發布 | 6K 次閱讀 React

React.js 是 非死book 推出的一個用來構建用戶界面的 JavaScript 庫。

非死book開源了React,這是該公司用于構建反應式圖形界面的JavaScript庫,已經應用于構建Instagram網站及 非死book部分網站。最近出現了AngularJS、MeteorJS 和Polymer中實現的Model-Driven Views等框架,React也順應了這種趨勢。React基于在數據模型之上聲明式指定用戶界面的理念,用戶界面會自動與底層數據保持同步。與前面提及 的框架不同,出于靈活性考慮,React使用JavaScript來構建用戶界面,沒有選擇HTML。

React v0.14 RC 發布,主要更新項目

  • 兩個包: React 和 React DOM

  • DOM node refs

  • 無狀態的功能組件

  • 棄用 react-tools

  • 編譯器優化

重要的 bug 修復:

  • Click events are handled by React DOM more reliably in mobile browsers, particularly in Mobile Safari.

  • SVG elements are created with the correct namespace in more cases.

  • React DOM now renders <option> elements with multiple text children properly and renders <select> elements on the server with the correct option selected.

  • When two separate copies of React add nodes to the same document (including when a browser extension uses React), React DOM tries harder not to throw exceptions during event handling.

  • Using non-lowercase HTML tag names in React DOM (e.g., React.createElement('DIV')) no longer causes problems, though we continue to recommend lowercase for consistency with the JSX tag name convention (lowercase names refer to built-in components, capitalized names refer to custom components).

  • React DOM understands that these CSS properties are unitless and does not append “px” to their values: animationIterationCount, boxOrdinalGroup, flexOrder, tabSize, stopOpacity.

  • Add-Ons: When using the test utils, Simulate.mouseEnter and Simulate.mouseLeave now work.

  • Add-Ons: ReactTransitionGroup now correctly handles multiple nodes being removed simultaneously.

詳情請查看:react-v0.14-rc1.html

來自:http://www.oschina.net/news/66087/react-0-14-rc

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