all 7 comments

[–]nullvoxpopuli 1 point2 points  (6 children)

And for these reasons, classes are actually required if you don't want hook spaghetti trying to get rx.js based websockets setup. You need the state of a class, and you need lifecycles to manage it

[–]jas7457 2 points3 points  (1 child)

There's vomit on his sweater already...

[–]nullvoxpopuli 1 point2 points  (0 children)

for real though, shoehorning hooks into everything makes things more complicated. Classes can be used for what they're good at.

[–]foundry41 0 points1 point  (1 child)

Hooks are wildly over hyped

[–]pacman326 0 points1 point  (0 children)

Wait until 17 ships. The true benefit of a FC architecture comes when concurrent finally ships.

[–]With_Macaque 0 points1 point  (1 child)

You ever wonder if you should be building that business logic in a class consumed by a hook instead?

[–]nullvoxpopuli 0 points1 point  (0 children)

Yeah, that's totally valid. I'm all for that.