NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #441 most downloaded on npm
React is a JavaScript library for building user interfaces.
Latest stable
19.3.1
Last release today
12 Nov 2026
Ships on a steady schedule
a new release about every 9 days
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
3011 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Fix a bug that caused inputs to behave incorrectly in UMD builds. (@gaearon in #14914)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix ReactDOM.render being ignored inside useEffect. (@gaearon in #14799)
ReactDOM.render being ignored inside useEffect. (@gaearon in #14799)useImperativeHandle to work correctly when no deps are specified. (@gaearon in #14801)crossOrigin attribute to work in SVG image elements. (@aweary in #14832)act() warning. (@threepointone in #14855)Fix a crash when used together with an older version of React. (@bvaughn in #14770)
Add Hooks — a way to use state and other React features without writing a class. (@acdlite et al. in #13968)
useReducer Hook lazy initialization API. (@acdlite in #14723)useState and useReducer Hooks. (@acdlite in #14569)Object.is algorithm for comparing useState and useReducer values. (@Jessidhia in #14752)useEffect/useMemo/useCallback Hooks. (@acdlite in #14594)React.lazy(). (@gaearon in #14626)undefined or a function. All other values, including null, are not allowed. @acdlite in #14119shouldComponentUpdate in the presence of getDerivedStateFromProps for Shallow Renderer. (@chenesan in #14613)ReactTestRenderer.act() and ReactTestUtils.act() for batching updates so that tests more closely match real behavior. (@threepointone in #14744)Nothing published for this version
Nothing published for this version
Fix performance of React.lazy for large numbers of lazily-loaded components. (@acdlite in #14429)
React.lazy for large numbers of lazily-loaded components. (@acdlite in #14429)react-dom/server@16.6 and react@<16.6. (@gaearon in #14291)setTimeout in testing environments. (@bvaughn in #14358)Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix bugs in Suspense and lazy. (@acdlite in #14133, #14157, and #14164)
Suspense and lazy. (@acdlite in #14133, #14157, and #14164)React.memo updates in React DevTools. (@bvaughn in #14141)renderToNodeStream() calls. (@sebmarkbage in #14182)This release was published in a broken state and should be skipped.
This release was published in a broken state and should be skipped.
Fallback should not remount every time a promise resolves. (@acdlite in #14083)
Add React.memo() as an alternative to PureComponent for functions. (@acdlite in #13748)
React.memo() as an alternative to PureComponent for functions. (@acdlite in #13748)React.lazy() for code splitting components. (@acdlite in #13885)React.StrictMode now warns about legacy context API. (@bvaughn in #13760)React.StrictMode now warns about findDOMNode. (@sebmarkbage in #13841)unstable_AsyncMode to unstable_ConcurrentMode. (@trueadm in #13732)unstable_Placeholder to Suspense, and delayMs to maxDuration. (@gaearon in #13799 and @sebmarkbage in #13922)contextType as a more ergonomic way to subscribe to context from a class. (@bvaughn in #13728)getDerivedStateFromError lifecycle method for catching errors in a future asynchronous server-side renderer. (@bvaughn in #13746)<Context> is used instead of <Context.Consumer>. (@trueadm in #13829)window.event in development. (@sergei-startsev in #13697)React.memo(). (@alexmckenley in #13855)contextType. (@alexmckenley and @sebmarkbage in #13889)scheduler. (@gaearon in #13683)requestAnimationFrame earlier. (@acdlite in #13785)envify transform to the package. (@mridgway in #13766)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed a recent regression (@JSteunou in #13650)
<iframe> regression (@JSteunou in #13650)updateWrapper so that <textarea>s no longer re-render when data is unchanged (@joelbarbosa in #13643)Improve the warning when React.forwardRef receives an unexpected number of arguments. (@andresroberto in #13636)
React.forwardRef receives an unexpected number of arguments. (@andresroberto in #13636)isReactComponent. (@gaearon in #13608)react-dom/profiling with schedule/tracking. (@bvaughn in #13605)ForwardRef component defines a displayName, use it in warnings. (@probablyup in #13615)Deprecate a Jest-specific ReactTestUtils.mockComponent() helper (@bvaughn in #13193)
React.forwardRef render function doesn't take exactly two arguments (@bvaughn in #13168)createElement by mistake (@DCtheTall in #13131)onRender until after mutations (@bvaughn in #13572)react-dom/profiling entry point alias for profiling in production (@bvaughn in #13570)onAuxClick event for browsers that support it (@jquense in #11571)movementX and movementY fields to mouse events (@jasonwilliams in #9018)tangentialPressure and twist fields to pointer events (@motiz88 in #13374)focusable SVG attribute (@gaearon in #13339)<noscript> on the client when when hydrating (@Ephem in #13537)gridArea to be treated as a unitless CSS property (@mgol in #13550)compositionend event when typing Korean on IE11 (@crux153 in #12563)children in the <option> tag (@Slowyn in #13261, @gaearon in #13465)checked attribute not getting initially set on the input (@dilidili in #13114)dangerouslySetInnerHTML when __html is not a string (@gaearon in #13353)onChange to fire on falsy values too (@nicolevy in #12628)submit and reset buttons getting an empty label (@ellsclytn in #12780)onSelect event not being triggered after drag and drop (@gaearon in #13422)onClick event not working inside a portal on iOS (@aweary in #11927)onChange to not fire in some cases (@gaearon in #13423)"false" or "true" is the value of a boolean DOM prop (@motiz88 in #13372)this.state is initialized to props (@veekas in #11658)style on hydration in IE due to noisy false positives (@mgol in #13534)StrictMode in the component stack (@gaearon in #13240)window.event in IE (@ConradIrwin in #11696)folder/index.js naming convention (@gaearon in #12059)getDerivedStateFromProps without initialized state (@flxwu in #13317)<webview> tag without warnings (@philipp-spiess in #13301)e.preventDefault() was called (@gaearon in #13384)unstable_deferredUpdates in favor of unstable_scheduleWork from schedule (@gaearon in #13488)dangerouslySetInnerHtml in a selected <option> (@mridgway in #13078)setTimeout is missing (@dustinsoftware in #13088)this in a functional component for shallow renderer to be undefined (@koba04 in #13144)ReactTestUtils.mockComponent() helper (@bvaughn in #13193)ReactDOM.createPortal usage within the test renderer (@bvaughn in #12895)Fix a potential XSS vulnerability when the attacker controls an attribute name (CVE-2018-6341). This fix is available in the latest react-dom@16.4.2,…
Fix a potential XSS vulnerability when the attacker controls an attribute name (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)
Fix a crash in the server renderer when an attribute is called hasOwnProperty. This fix is only available in react-dom@16.4.2. (@gaearon in #13303)
You can now assign propTypes to components returned by React.ForwardRef. (@bvaughn in #12911)
type changes from some other types to text. (@spirosikmd in #12135)event.target value for the onChange event in IE9. (@nhunzaker in #12976)<React.Fragment /> from a component. (@philipp-spiess in #12966)Add a new experimental React.unstable_Profiler component for measuring performance. (@bvaughn in #12745)
React.unstable_Profiler component for measuring performance. (@bvaughn in #12745)getDerivedStateFromProps() regardless of the reason for re-rendering. (@acdlite in #12600 and #12802)forwardRef() on a deeper setState(). (@gaearon in #12690)propTypes on a context provider component. (@nicolevy in #12658)react-lifecycles-compat in <StrictMode>. (@bvaughn in #12644)forwardRef() render function has propTypes or defaultProps. (@bvaughn in #12644)forwardRef() and context consumers are displayed in the component stack. (@sophiebits in #12777)getDerivedStateFromProps() support to match the new React DOM behavior. (@koba04 in #12676)testInstance.parent crash when the parent is a fragment or another special node. (@gaearon in #12813)forwardRef() components are now discoverable by the test renderer traversal methods. (@gaearon in #12725)setState() updaters that return null or undefined. (@koba04 in #12756)Nothing published for this version
Nothing published for this version
Nothing published for this version
Improve the error message when passing null or undefined to React.cloneElement. (@nicolevy in #12534)
null or undefined to React.cloneElement. (@nicolevy in #12534)<StrictMode>. (@bvaughn in #12546)unstable_observedBits API with nesting. (@gaearon in #12543)Fix a false positive warning in IE11 when using Fragment. (@heikkilamarko in #12504)
Fragment. (@heikkilamarko in #12504)setState() in constructor. (@gaearon in #12532)getDerivedStateFromProps() not getting applied in some cases. (@acdlite in #12528)Deprecate ReactDOM.unstable_createPortal() in favor of ReactDOM.createPortal(). (@prometheansacrifice in #11747)
React.createRef() API as an ergonomic alternative to callback refs. (@trueadm in #12162)React.forwardRef() API to let components forward their refs to a child. (@bvaughn in #12346)React.Fragment. (@XaveScor in #11823)React.unstable_AsyncComponent with React.unstable_AsyncMode. (@acdlite in #12117)setState() on an unmounted component. (@sophiebits in #12347)getDerivedStateFromProps() lifecycle and UNSAFE_ aliases for the legacy lifecycles. (@bvaughn in #12028)getSnapshotBeforeUpdate() lifecycle. (@bvaughn in #12404)<React.StrictMode> wrapper to help prepare apps for async rendering. (@bvaughn in #12083)onLoad and onError events on the <link> tag. (@roderickhsiao in #11825)noModule boolean attribute on the <script> tag. (@aweary in #11900)onKeyPress in more browsers. (@nstraub in #10514)value and defaultValue to ignore Symbol values. (@nhunzaker in #11741)opera with a null value. @alisherdavronov in #11854)<option selected>. (@watadarkstar in #11821)ReactDOM.unstable_createPortal() in favor of ReactDOM.createPortal(). (@prometheansacrifice in #11747)React.Component. (@wyze in #11993)this.state of different components getting mixed up. (@sophiebits in #12323)toTree(). (@maciej-ka in #12107 and @gaearon in #12154)null for components that don't set it. (@jwbay in #11965)contextTypes. (@koba04 in #11922)ReactIs.isValidElementType() to help higher-order components validate their inputs. (@jamesreggio in #12483)react-reconciler/persistent for building renderers that use persistent data structures. (@gaearon in #12156)finalizeInitialChildren(). (@jquense in #11970)useSyncScheduling from the host config. (@acdlite in #11771)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
Add Fragment as named export to React. (@clemmy in #10783)
Fragment as named export to React. (@clemmy in #10783)React.Children utilities. (@MatteoVH in #11422)onChange event in some cases. (@jquense in #11028)setState() callback firing too early when called from componentWillMount. (@accordeiro in #11507)Improve the warning about undefined component type. (@selbekk in #11505)
capture attribute. (@maxschmeling in #11424)ReactDOMServer public API. (@travi in #11531)autoFocus={false} attribute on the server. (@gaearon in #11543)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 config
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)Nothing published for this version
Nothing published for this version
Nothing published for this version
The deprecations introduced in 15.x have been removed from the core package. React.createClass is now available as create-react-class, React.PropTypes…
Learn more in the React 16.0 announcement post!
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.jsreact/dist/react.min.js → react/umd/react.production.min.jsreact-dom/dist/react-dom.js → react-dom/umd/react-dom.development.jsreact-dom/dist/react-dom.min.js → react-dom/umd/react-dom.production.min.jsReactDOM.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.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
One column per quarter.