loading...

re: 🔥 Learn React in 10 Tweets (with hooks) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hooks help functions replace classes only when those class components used state or life cycle. Otherwise it could have used a functional component...

:) Yes - you're correct; the main use case for hooks is state or lifecycle (useEffect). You can also use useRef for reference though, useContext for context, and a few other things - but useState is probably most of the usage.

Code of Conduct Report abuse