pfkn18rkn9 发表于 2016-6-4 09:57:24

React v15.0 发布,React 和 React

欢迎加入运维网交流群:263444886>>> »  
  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
  更多发布相关信息,可以参看这里。
  
页: [1]
查看完整版本: React v15.0 发布,React 和 React