this post was submitted on 25 Oct 2026
371 points (95.1% liked)

Programmer Humor

33844 readers
1253 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 

Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

you are viewing a single comment's thread
view the rest of the comments
[–] Endmaker@ani.social 7 points 4 days ago (2 children)

useState hook is an actual plague on the entire React ecosystem

Personally, I find useEffect to be the real evil.

[–] SpaceNoodle@lemmy.world 14 points 3 days ago

Personally, I find React to be the real evil.

[–] danhab99@programming.dev 4 points 3 days ago (2 children)

I feel like useState and useEffect are 2 sides of the same coin

[–] canaryWart@programming.dev 2 points 3 days ago

might you even say "two perspectives of the same object"?

[–] naught@sh.itjust.works 1 points 3 days ago* (last edited 3 days ago)

tbf useEffect is what fried even cloudflare a while back, oh and also me many times. Insanely easy to write once. Just as easy to forget a dependency or modify the function into creating an infinite loop. Or hell using useEffect(() => {}) i.e. an anonymous function instead of naming it so I have to read 30 LoC to figure out what it does only to realize it's not even the effect I needed -.-