3 ms·
I find class components easier to visually parse and understand because of the organization of lifecycle methods into separate functions. I do understand the be
by turdnagel 7y ago
I find class components easier to visually parse and understand because of the organization of lifecycle methods into separate functions. I do understand the benefit of hooks, but I still reach for class components when working on something new because I'm extremely productive with them.
- ybahubali2018 7y agoI agree with you that the class components are bit easier to visualize the flow than hooks. At first, React hooks look simple and easy. But when i started thinking about setTimeout's, API calls, Re-renders, the flow get's difficult to imagine.