React v16.8 arrives with Hooks available in a stable release
The wait is over! React v16.8 is here and it brings Hooks in a stable release! If you missed the hype and you don’t know what we’re talking about, fear not! In this article, we are having a closer look at this new feature.
React v16.8 is live and so is the stable release of Hooks!
This new release brings a couple of important updates and improvements, but the Hooks is definitely the feature that steals the spotlight!
Before we dig deeper into this new feature, let’s have a quick look at the other updates in React v16.8.
- Bail out of rendering on identical values for
useReducerHooks. (@acdlite in #14569)
- Don’t compare the first argument passed to
useCallbackHooks. (@acdlite in #14594)
Object.isalgorithm for comparing
useReducervalues. (@Jessidhia in #14752)
- 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
undefinedor a function. All other values, including
null, are not allowed. @acdlite in #14119
Check out the official changelog for the extensive list of updates.
And now, all aboard the Hooks hype train!