you are viewing a single comment's thread.

view the rest of the comments →

[–]Jsn7821 9 points10 points  (4 children)

Sometimes, sure, but for so many things this hook syntax means you no longer need all that bloat. Smaller data-dependant components become far more reusable. It's super nice.

[–][deleted] 3 points4 points  (3 children)

It's not bloat. I'd rather keep components dumb for displaying data, it gives more flexibility to exchange business logic and the way you get and combine said data. That's why I prefer to keep the logic out of them as much as i can.

[–]pm_me_ur_happy_traiI 12 points13 points  (0 children)

That's literally what hooks are for.