News for hackers. Stuff that matters.
Re:I love React Hooks by Swizec on Wednesday February 20, 2019 @02:34AM (#19206303)
> The real issue which I want to see solved is getting people to remove business logic from React. I see components loaded to the gills with data fetching and overly complicated async rendering schemes. Personally I try to keep my React components extremely dumb.

Hooks are great for this. You extract all business logic into custom hooks and your components are left as dumb renderers calling other functions to get values. It’s great.

There are no comments on this comment yet.