react v16.8.0 Release Notes
Release Date: 2019-02-06 // about 5 years ago-
React
- β Add Hooks β a way to use state and other React features without writing a class. (@acdlite et al. in #13968)
- π Improve the
useReducer
Hook lazy initialization API. (@acdlite in #14723)
React DOM
- Bail out of rendering on identical values for
useState
anduseReducer
Hooks. (@acdlite in #14569) - π Use
Object.is
algorithm for comparinguseState
anduseReducer
values. (@Jessidhia in #14752) - π Donβt compare the first argument passed to
useEffect
/useMemo
/useCallback
Hooks. (@acdlite in #14594) - π Support synchronous thenables passed to
React.lazy()
. (@gaearon in #14626) - Render components with Hooks twice in Strict Mode (DEV-only) to match class behavior. (@gaearon in #14654)
- Warn about mismatching Hook order in development. (@threepointone in #14585 and @acdlite in #14591)
- Effect clean-up functions must return either
undefined
or a function. All other values, includingnull
, are not allowed. @acdlite in #14119
β React Test Renderer and Test Utils
- π Support Hooks in the shallow renderer. (@trueadm in #14567)
- π Fix wrong state in
shouldComponentUpdate
in the presence ofgetDerivedStateFromProps
for Shallow Renderer. (@chenesan in #14613) - β Add
ReactTestRenderer.act()
andReactTestUtils.act()
for batching updates so that tests more closely match real behavior. (@threepointone in #14744)
π ESLint Plugin: React Hooks
- π Initial release. (@calebmer in #13968)
- π Fix reporting after encountering a loop. (@calebmer and @Yurickh in #14661)
- Don't consider throwing to be a rule violation. (@sophiebits in #14040)
Artifacts
- react : https://unpkg.com/[email protected]/umd/
- react-art : https://unpkg.com/[email protected]/umd/
- react-dom : https://unpkg.com/[email protected]/umd/
- react-is : https://unpkg.com/[email protected]/umd/
- β react-test-renderer : https://unpkg.com/[email protected]/umd/
- β± scheduler : https://unpkg.com/[email protected]/umd/