NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1245 most downloaded on npm
React is a JavaScript library for building user interfaces.
Latest stable
0.19.0
Last release today
12 Nov 2026
Ships on a steady schedule
a new release about every 9 days
Some releases are documented
notes for 16 of 38 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
2788 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed bug with development build preventing events from firing in some versions of Internet Explorer & Edge
integrity attributechildren prop being coerced to a string for custom elements, which was not the desired behaviorreact from dependencies to peerDependencies to match expectations and align with react-addons-* packagesFixed bug where events wouldn't fire in old browsers when using React in development mode
dangerouslySetInnerHTML with Closure Compiler Advanced modesrcLang, default, and kind attributes for <track> elementscolor attribute.props access on DOM nodes is updated on re-rendersscryRenderedDOMComponentsWithClass so it works with SVG0 to be used as a timeout valuereact-dom.js to main to improve compatibility with toolingSee http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html.
See http://facebook.github.io/react/blog/2015/10/07/react-v0.14.html.
react package into two: react and react-dom. This paves the way to writing components that can be shared between the web version of React and React Native. This means you will need to include both files and some functions have been moved from React to ReactDOM.react-addons-clone-with-props, react-addons-create-fragment, react-addons-css-transition-group, react-addons-linked-state-mixin, react-addons-perf, react-addons-pure-render-mixin, react-addons-shallow-compare, react-addons-test-utils, react-addons-transition-group, react-addons-update, ReactDOM.unstable_batchedUpdates).props) which returns a JSX element, and this function may be used as a component.getDOMNode() to get the underlying DOM node. Starting with this release, a ref to a DOM component is the actual DOM node. Note that refs to custom (user-defined) components work exactly as before; only the built-in DOM components are affected by this change.React.initializeTouchEvents is no longer necessary and has been removed completely. Touch events now work automatically.TestUtils.findAllInRenderedTree and related helpers are no longer able to take a DOM component, only a custom component.props object is now frozen, so mutating props after creating a component element is no longer supported. In most cases, React.cloneElement should be used instead. This change makes your components easier to reason about and enables the compiler optimizations mentioned above.createFragment helper to migrate, which now returns an array.classSet has been removed. Use classnames instead.class instead of className.this.getDOMNode() is now deprecated and ReactDOM.findDOMNode(this) can be used instead. Note that in the common case, findDOMNode is now unnecessary since a ref to the DOM component is now the actual DOM node.setProps and replaceProps are now deprecated. Instead, call ReactDOM.render again at the top level with the new props.React.Component in order to enable stateless function components. The ES3 module pattern will continue to work.style object between renders has been deprecated. This mirrors our change to freeze the props object.cloneWithProps is now deprecated. Use React.cloneElement instead (unlike cloneWithProps, cloneElement does not merge className or style automatically; you can merge them manually if needed).CSSTransitionGroup will no longer listen to transition events. Instead, you should specify transition durations manually using props such as transitionEnterTimeout={500}.React.Children.toArray which takes a nested children object and returns a flat array with keys assigned to each child. This helper makes it easier to manipulate collections of children in your render methods, especially if you want to reorder or slice this.props.children before passing it down. In addition, React.Children.map now returns plain arrays too.console.error instead of console.warn for warnings so that browsers show a full stack trace in the console. (Our warnings appear when you use patterns that will break in future releases and for code that is likely to behave unexpectedly, so we do consider our warnings to be “must-fix” errors.)Symbol in browsers that support it, in order to ensure that React never considers untrusted JSON to be a valid element. If this extra security protection is important to you, you should add a Symbol polyfill for older browsers, such as the one included by Babel’s polyfill.capture, challenge, inputMode, is, keyParams, keyType, minLength, summary, wrap. It also now supports these non-standard attributes: autoSave, results, security.xlinkActuate, xlinkArcrole, xlinkHref, xlinkRole, xlinkShow, xlinkTitle, xlinkType, xmlBase, xmlLang, xmlSpace.image SVG tag is now supported by React DOM.is="..." attribute).audio and video tags: onAbort, onCanPlay, onCanPlayThrough, onDurationChange, onEmptied, onEncrypted, onEnded, onError, onLoadedData, onLoadedMetadata, onLoadStart, onPause, onPlay, onPlaying, onProgress, onRateChange, onSeeked, onSeeking, onStalled, onSuspend, onTimeUpdate, onVolumeChange, onWaiting.shallowCompare add-on has been added as a migration path for PureRenderMixin in ES6 classes.CSSTransitionGroup can now use custom class names instead of appending -enter-active or similar to the transition name.document.body directly as the container to ReactDOM.render now gives a warning as doing so can cause problems with browser extensions that modify the DOM.<option> elements with multiple text children properly and renders <select> elements on the server with the correct option selected.React.createElement('DIV')) no longer causes problems, though we continue to recommend lowercase for consistency with the JSX tag name convention (lowercase names refer to built-in components, capitalized names refer to custom components).animationIterationCount, boxOrdinalGroup, flexOrder, tabSize, stopOpacity.Simulate.mouseEnter and Simulate.mouseLeave now work.react-tools package and JSXTransformer.js browser file have been deprecated. You can continue using version 0.13.3 of both, but we no longer support them and recommend migrating to Babel, which has built-in support for React and JSX.optimisation.react.inlineElements transform converts JSX elements to object literals like {type: 'div', props: ...} instead of calls to React.createElement. This should only be enabled in production, since it disables some development warnings/checks.optimisation.react.constantElements transform hoists element creation to the top level for subtrees that are fully static, which reduces calls to React.createElement and the resulting allocations. More importantly, it tells React that the subtree hasn’t changed so React can completely skip it when reconciling. This should only be enabled in production, since it disables some development warnings/checks.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Deprecated patterns that warned in 0.12 no longer work: most prominently, calling component classes without using JSX or React.createElement and using…
props after an element is created is deprecated and will cause warnings in development mode; future versions of React will incorporate performance optimizations assuming that props aren't mutatedstatics) are no longer autobound to the component classref resolution order has changed slightly such that a ref to a component is available immediately after its componentDidMount method is called; this change should be observable only if your component calls a parent component's callback within your componentDidMount, which is an anti-pattern and should be avoided regardlesssetState in life-cycle methods are now always batched and therefore asynchronous. Previously the first call on the first mount was synchronous.setState and forceUpdate on an unmounted component now warns instead of throwing. That avoids a possible race condition with Promises.this._pendingState and this._rootNodeID.React.findDOMNode(component), which should be used in place of component.getDOMNode(). The base class for ES6-based components will not have getDOMNode. This change will enable some more patterns moving forward.React.cloneElement(el, props) for making copies of React elements – see the v0.13 RC2 notes for more details.ref style, allowing a callback to be used in place of a name: <Photo ref={(c) => this._photo = c} /> allows you to reference the component with this._photo (as opposed to ref="photo" which gives this.refs.photo).this.setState() can now take a function as the first argument for transactional state updates, such as this.setState((state, props) => ({count: state.count + 1})); – this means that you no longer need to use this._pendingState, which is now gone.ComponentClass.type is deprecated. Just use ComponentClass (usually as element.type === ComponentClass).createClass-based components are removed or deprecated from ES6 classes (getDOMNode, replaceState, isMounted, setProps, replaceProps).React.addons.createFragment was added for adding keys to entire sets of children.React.addons.classSet is now deprecated. This functionality can be replaced with several freely available modules. classnames is one such module.React.addons.cloneWithProps can be migrated to use React.cloneElement instead – make sure to merge style and className manually if desired.class methods are no longer enumerable by default, which requires Object.defineProperty; if you support browsers such as IE8, you can pass --target es3 to mirror the old behavior--target option is available on the jsx command, allowing users to specify and ECMAScript version to target.
es5 is the default.es3 restores the previous default behavior. An additional transform is added here to ensure the use of reserved words as properties is safe (eg this.static will become this['static'] for IE8 compatibility).> or } when inside an element. Previously it would be treated as a string but now it will be treated as a parse error. The jsx_orphaned_brackets_transformer package on npm can be used to find and fix potential issues in your JSX code.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Spread operator ({...}) introduced to deprecate this.transferPropsTo
key and ref moved off props object, now accessible on the element directlyReact.__internals is removed - it was exposed for DevTools which no longer needs accessReact.createFactory first. This is handled for you when using JSX.{...}) introduced to deprecate this.transferPropsToacceptCharset, classID, manifestReact.renderComponent --> React.renderReact.renderComponentToString --> React.renderToStringReact.renderComponentToStaticMarkup --> React.renderToStaticMarkupReact.isValidComponent --> React.isValidElementReact.PropTypes.component --> React.PropTypes.elementReact.PropTypes.renderable --> React.PropTypes.nodeReact.isValidClassinstance.transferPropsTofalse from event handlers to preventDefaultReact.createFactorykey={null} to assign implicit keysevent.getModifierState as case sensitiveevent.charCodelist updates correctly nowscrollLeft, scrollTop removed, these should not be specified as propsReact.addons.batchedUpdates added to API for hooking into update cycleReact.addons.update uses assign instead of copyProperties which does hasOwnProperty checks. Properties on prototypes will no longer be updated correctly.@jsx React.DOM no longer required{...}) operator introduced to allow easier use of propsNothing published for this version
getDefaultProps() is now called once per class and shared across all instances
getDefaultProps() is now called once per class and shared across all instancesMyComponent() now returns a descriptor, not an instanceReact.isValidComponent and React.PropTypes.component validate descriptors, not component instancespropType validators should return an Error instead of logging directlynulle.key and e.getModifierState() propertiesonBeforeInput eventReact.Children.count has been added as a helper for counting the number of childrene.view properly normalizedcoords, crossOrigin, download, hrefLang, mediaGroup, muted, scrolling, shape, srcSet, start, useMap)className on a mounted SVG component now works correctlymask and tspandx, dy, fillOpacity, fontFamily, fontSize, markerEnd, markerMid, markerStart, opacity, patternContentUnits, patternUnits, preserveAspectRatio, strokeDasharray, strokeOpacityWebkit, ms, Moz, O) are now handled properlyimg event listeners are now unbound properly, preventing the error "Two valid but unequal nodes with the same data-reactid"$apply command to transform valuesdist/.envify is properly listed as a dependency instead of a peer dependency<Components.Checkbox />harmony features available in the command line with <script type="text/jsx;harmony=true">--harmony option--source-map-inline option to the jsx executabletransformWithDetails API which gives access to the raw sourcemap dataOne column per quarter.