Quantcast
Channel: OSCHINA 社区最新新闻
Viewing all articles
Browse latest Browse all 44787

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

$
0
0

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.

获取:

更多发布相关信息,可以参看这里


Viewing all articles
Browse latest Browse all 44787

Trending Articles