News for hackers. Stuff that matters.
Re:Frustrations with React Hooks by turdnagel on Tuesday September 10, 2019 @09:51AM (#20928143)
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.
Re:Frustrations with React Hooks by ybahubali2018 on Tuesday September 10, 2019 @10:00AM (#20928243)
I 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.