Recently React got new hooks api, that allows to have state in purely functional components. Let’s see how it looks like and experiment a bit!
![Cover image for React Hooks Api Intro - How To Use useState And useEffect](https://res.cloudinary.com/practicaldev/image/fetch/s--rQuc1jDH--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/ye6vqhhmyoe7zvfscgwz.jpeg)
For further actions, you may consider blocking this person and/or reporting abuse
Recently React got new hooks api, that allows to have state in purely functional components. Let’s see how it looks like and experiment a bit!
For further actions, you may consider blocking this person and/or reporting abuse
Jose Ventura -
Stanojevic Bojan -
Petro Borshchahivskyi -
Thomas Taylor -
Top comments (3)
It is interesting how the hooks operate inside React, but I think that react is still far from functional.
I invite you to know this small project
github.com/orby-js/core
Tbh I don’t understand why do we need state bound to component instance. 🤷♂️
Thank you for your comment, the state inside orby is simple and is less code than the use of hooks 🤓
I attach a small article that has been of my interest in the topic of hooks
medium.com/@ryardley/react-hooks-n...