react-devtools
Advanced tools
Changelog
16.1.1 (November 13, 2017)
capture
attribute. (@maxschmeling in #11424)ReactDOMServer
public API. (@travi in #11531)autoFocus={false}
attribute on the server. (@gaearon in #11543)Changelog
16.1.0 (November 9, 2017)
Starting with 16.1.0, we will no longer be publishing new releases on Bower. You can continue using Bower for old releases, or point your Bower configs to the React UMD builds hosted on unpkg that mirror npm releases and will continue to be updated.
React.Children
utilities. (@MatteoVH in #11378)render
method but doesn't extend a known base class. (@sw-yx in #11168)on
as a custom attribute for AMP. (@nuc in #11153)onMouseEnter
and onMouseLeave
firing on wrong elements. (@gaearon in #11164)null
showing up in a warning instead of the component stack. (@gaearon in #10915)tabIndex
not getting applied to SVG elements. (@gaearon in #11034)dangerouslySetInnerHTML
in IE. (@OriR in #11108)form.reset()
to respect defaultValue
on uncontrolled <select>
. (@aweary in #11057)<textarea>
placeholder not rendering on IE11. (@gaearon in #11177)<dialog>
element. (@gaearon in #11035)componentDidReceiveProps
method. (@iamtommcc in #11479)contentEditable
and children
. (@Ethan-Arrowood in #11208)select
gets null value
. (@Hendeca in #11141)suppressHydrationWarning
attribute for intentional client/server text mismatches. (@sebmarkbage in #11126)autoFocus
attribute into SSR markup. (@gaearon in #11192)setState()
calls in componentWillMount()
in shallow renderer. (@Hypnosphi in #11167)shouldComponentUpdate()
after forceUpdate()
. (@d4rky-pl in #11239 and #11439)forceUpdate()
and React.PureComponent
correctly. (@koba04 in #11440)package.json
dependency. (@gaearon in #11340)package.json
dependency. (@gaearon in #11341)react-art/Circle
, react-art/Rectangle
, and react-art/Wedge
. (@gaearon in #11343)Changelog
16.0.1 (August 1, 2018)
CVE-2018-6341
). This fix is available in the latest react-dom@16.4.2
, as well as in previous affected minor versions: react-dom@16.0.1
, react-dom@16.1.2
, react-dom@16.2.1
, and react-dom@16.3.3
. (@gaearon in #13302)Changelog
15.3.2 (September 19, 2016)
playsInline
to supported HTML attributes. (@reaperhulk in #7519)as
to supported HTML attributes. (@kevinslin in #7582)preventDefault()
in Synthetic Events. (@g-palmer in #7411)onSelect
implementation. (@AgtLucas in #7533)document.documentMode
checks to handle Google Tag Manager. (@SchleyB in #7594)document.createEvent
. (@Andarist in #7621)dangerouslySetInnerHTML
and SVG in Internet Explorer. (@zpao in #7618)Changelog
16.0.0 (September 26, 2017)
render
. (Docs coming soon!)ReactDOM.createPortal()
. (Docs coming soon!)ReactDOMServer.renderToNodeStream()
and ReactDOMServer.renderToStaticNodeStream()
. (@aickin in #10425, #10044, #10039, #10024, #9264, and others.)ReactDOM.render()
and ReactDOM.unstable_renderIntoContainer()
now return null
if called from inside a lifecycle method.
setState
behavior:
setState
with null no longer triggers an update. This allows you to decide in an updater function if you want to re-render.setState
directly in render always causes an update. This was not previously the case. Regardless, you should not be calling setState
from render.setState
callback (second argument) now fires immediately after componentDidMount
/ componentDidUpdate
instead of after all components have rendered.<A />
with <B />
, B.componentWillMount
now always happens before A.componentWillUnmount
. Previously, A.componentWillUnmount
could fire first in some cases.ref
to a component would always detach the ref before that component's render is called. Now, we change the ref
later, when applying the changes to the DOM.ReactDOM.unmountComponentAtNode
. See this example.componentDidUpdate
lifecycle no longer receives prevContext
param. (@bvaughn in #8631)componentDidUpdate()
because DOM refs are not available. This also makes it consistent with componentDidMount()
(which does not get called in previous versions either).unstable_batchedUpdates()
anymore.ReactDOM.unstable_batchedUpdates
now only takes one extra argument after the callback.react/dist/react.js
→ react/umd/react.development.js
react/dist/react.min.js
→ react/umd/react.production.min.js
react-dom/dist/react-dom.js
→ react-dom/umd/react-dom.development.js
react-dom/dist/react-dom.min.js
→ react-dom/umd/react-dom.production.min.js
ReactDOM.hydrate
instead of ReactDOM.render
if you're reviving server rendered HTML. Keep using ReactDOM.render
if you're just doing client-side rendering.react-with-addons.js
build anymore. All compatible addons are published separately on npm, and have single-file browser versions if you need them.React.createClass
is now available as create-react-class, React.PropTypes
as prop-types, React.DOM
as react-dom-factories, react-addons-test-utils as react-dom/test-utils, and shallow renderer as react-test-renderer/shallow. See 15.5.0 and 15.6.0 blog posts for instructions on migrating code and automated codemods.Changelog
15.3.1 (August 19, 2016)
React.Children.only
. (@sophiebits in #7514)<input>
validation warning from browsers when changing type
. (@nhunzaker in #7333)stopPropagation()
in Synthetic Events. (@nhunzaker in #7343)<input>
elements in mobile browsers. (@keyanzhang in #7397)<input type="range">
values not updating when changing min
or max
. (@troydemonbreun in #7486)trackedTouchCount
invariant into a console.error for better reliability. (@yungsters in #7400)Changelog
15.3.0 (July 29, 2016)
React.PureComponent
- a new base class to extend, replacing react-addons-pure-render-mixin
now that mixins don't work with ES2015 classes. (@sophiebits in #7195)this.props.children
. (@jimfb in #7001)oneOf
and oneOfType
PropTypes sooner. (@troydemonbreun in #6316)PropTypes.element
warning. (@alexzherdev in #7319)setState
warning. (@keyanzhang in #7326)xmlns
, xmlnsXlink
to supported SVG attributes. (@salzhrani in #6471)referrerPolicy
to supported HTML attributes. (@Aweary in #7274)<input type="range">
initial value being rounded. (@troydemonbreun in #7251)npm install react-test-renderer
. (@sophiebits in #6944, #7258, @iamdustan in #7362)Changelog
15.2.0 (July 1, 2016)
React.PropTypes.symbol
to support ES2015 Symbols as props. (@puradox in #6377)childContextTypes
on a functional component (@Aweary in #6933)onLoad
handling to <link>
element. (@roderickhsiao in #6815)onError
handling to <source>
element. (@wadahiro in #6941)value
and defaultValue
more accurately in the DOM. (@jimfb in #6406)Object.prototype
. (@Weizenlol in #6886)is="null"
ended up in the DOM in Firefox. (@darobin in #6896)dangerouslySetInnerHTML
and SVG in Internet Explorer. (@joshhunt in #6982)<textarea>
placeholders. (@jimfb in #7002)<input type="radio"/>
. (@jimfb in #7003)<select>
components behave the same on initial render as they do on updates. (@yiminghe in #5362)isRunning()
API. (@nfcampos in #6763)null
node. (@keyanzhang in #6958)Changelog
15.1.0 (May 20, 2016)
object-assign
, which has protection against a non-spec-compliant native Object.assign
. (@zpao in #6681)props
objects passed to createElement
must be plain objects. (@richardscarrott in #6134)onScroll
event handler with server rendering. (@Aweary in #6678)<object>
nodes from being able to read <param>
nodes in IE. (@syranide in #6691)merge
utility. (@sebmarkbage in #6634)Changelog
15.0.2 (April 29, 2016)
componentWillUnmount
is only called once. (@jimfb in #6613)<option>
s are correctly selected when inside <optgroup>
. (@trevorsmith in #6442)<body>
elements are caught when warning for invalid markup. (@keyanzhang in #6469)scryRenderedDOMComponentsWithClass
better. (@ipeters90 in #6529)