When I try to use the new React hooks feature I run into this annoying error message for some reason.
I followed the instructions on the documentation and upgraded react to the latest alpha version with yarn add react@next
.
I actually solved this issue! Most likely what you did to start using hooks was just updated react using yarn add react@next
or something similar, but you probably didn't upgrade react-dom
which is why you're getting this error.
TLDR; Upgrade react-dom
!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With