DEV Community

Discussion on: Why I think React Hooks are Slick

Collapse
 
johnmerchant profile image
John Merchant

Nice post! I have found that hooks are so much better for reading comprehension as well. Instead of having to read each lifecycle function of a class component and figuring out what happens in each function and mentally connecting the dots, the code of a function component with hooks is so much easier to comprehend, as the state and effects of the component are defined declaratively, rather than imperatively.

Collapse
 
kayis profile image
K • Edited

Thank you!

Yes, the actual need to look into every lifecycle method after you wrote all of them is the other side of that problem.