I\'m running the latest version of React and I\'m getting this error I have a simple Component using React Hooks as you can see here :
import React, { useS
I tried to use the following in package.json but do not work.
"react": "16.7.0-alpha.2", "react-dom": "16.7.0-alpha.2",
What worked is the following
"react": "next", "react-dom": "next",
EDIT
React version v16.8.0 has Hooks inside. Use that.