React: Hooks are disabled in v16.7.0-alpha.1

Created on 13 Nov 2018  ·  5Comments  ·  Source: facebook/react

image

:smile:

Bug

Most helpful comment

Oops. Sorry.

All 5 comments

Oops. Sorry.

enableStableConcurrentModeAPIs is false on this release as well, by the way!

Maybe unpublish 16.7.0-alpha.1? I believe most people are using the next version because of hooks.

I got here by installing [email protected] and thinking I was doing something wrong because React.useState was undefined.

Heh. Just spent good hour trying to figure out why useState is not defined on React. Will this be changed or should I look for some other version?

Previous alpha release had incorrect feature flags due to a build script snafu. (I even tested with NPM+CRA but apparently the @next tag hadn't propagated yet) 😳

Fortunately we have some ideas on how to prevent this sort of thing from happening in the future:
https://github.com/facebook/react/issues/14201

Sorry for the inconvenience.

Was this page helpful?
0 / 5 - 0 ratings