r/javascript • • Mar 06 '23

Were React Hooks a Mistake?

https://jakelazaroff.com/words/were-react-hooks-a-mistake/
7 Upvotes

24 comments sorted by

View all comments

10

u/ILikeChangingMyMind Mar 06 '23

Have you tried programming with class-based React code?

I have, and I promise hooks were not a mistake: if they were, we'd all still be using classes.

-1

u/[deleted] Mar 06 '23

Whoa whoa whoa let's stay above the belt here. Classes were a mistake from jump, but let's keep it classy but classless 😂

0

u/ILikeChangingMyMind Mar 06 '23

I honestly didn't think there was anything "unclassy" about my comment.

-1

u/[deleted] Mar 06 '23 edited Mar 06 '23

It was a joke, that's why the emoji

Edit: also a play on words not a pun