红联Linux门户
Linux帮助

React v15.0发布,React和React-dom父版本

发布时间:2016-04-08 09:18:54来源:红联作者:baihuo
React v15.0 发布了,原本的 react package 被拆分为 react 及 react-dom 两个 package。其中 react package 中包含 React.createElement、 .createClass、 .Component, .PropTypes, .Children 这些 API,而 react-dom package 中包含 ReactDOM.render、 .unmountComponentAtNode、 .findDOMNode。

此版本你值得关注的一些提升:

React now uses loose-envify instead of envify so it installs less transitive dependencies.
@qerub in #6303

Shallow renderer now exposes getMountedInstance().
@glenjamin in #4918

Shallow renderer now returns the rendered output from render().
@simonewebdesign in #5411

React no longer depends on ES5 shams for Object.create and Object.freeze in older environments. It still, however, requires ES5 shims in those environments.
@dgreensp in #4959

React DOM now allows data- attributes with names that start with numbers.
@nLight in #5216

React DOM adds a new suppressContentEditableWarning prop for components like Draft.js that intentionally manage contentEditable children with React.
@mxstbr in #6112

React improves the performance for createClass() on complex specs.

获取:

React
Dev build with warnings: https://fb.me/react-15.0.0.js
Minified build for production: https://fb.me/react-15.0.0.min.js

React with Add-Ons
Dev build with warnings: https://fb.me/react-with-addons-15.0.0.js
Minified build for production: https://fb.me/react-with-addons-15.0.0.min.js

React DOM (include React in the page before React DOM)
Dev build with warnings: https://fb.me/react-dom-15.0.0.js
Minified build for production: https://fb.me/react-dom-15.0.0.min.js

软件详情:https://facebook.github.io/react/blog/2016/04/07/react-v15.html

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

共有 0 条评论