DEV Community

Discussion on: Everything you need to know about React Hooks

Collapse
 
aralroca profile image
Aral Roca

Hooks are a beauty alternative to renderprops or hoc. Reusing logic without JSX in the middle. Of course they don't reinvent another lifecycle and they reuse the existent one.

Components are now more atomic, with a separation of concerns.

At the beginning I didn't like so much until I realized that is possible to generate a custom hooks. IMO here is where is all the power.