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

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

$
0
0

React v15.1.0 发布了,原本的 react package 被拆分为 react 及 react-dom 两个 package。其中 react package 中包含 React.createElement、 .createClass、 .Component, .PropTypes, .Children 这些 API,而 react-dom package 中包含 ReactDOM.render、 .unmountComponentAtNode、 .findDOMNode。

主要更新内容如下:

React

  • Ensure we're using the latest object-assign, which has protection against a non-spec-compliant native Object.assign. (@zpao in #6681)

  • Add a new warning to communicate that props objects passed to createElement must be plain objects. (@richardscarrott in #6134)

  • Fix a batching bug resulting in some lifecycle methods incorrectly being called multiple times. (@spicyj in #6650)

React DOM

  • Fix regression in custom elements support. (@jscissr in #6570)

  • Stop incorrectly warning about using onScroll event handler with server rendering. (@Aweary in#6678)

  • Fix grammar in the controlled input warning. (@jakeboone02 in #6657)

  • Fix issue preventing <object> nodes from being able to read <param> nodes in IE. (@syranide in#6691)

  • Fix issue resulting in crash when using experimental error boundaries with server rendering. (@jimfbin #6694)

  • Add additional information to the controlled input warning. (@borisyankov in #6341)

React Perf Add-on

  • Completely rewritten to collect data more accurately and to be easier to maintain. (@gaearon in#6647#6046)

React Native Renderer

下载地址:


Viewing all articles
Browse latest Browse all 44787

Trending Articles