Comment on Cloudflare DDoSed itself with React useEffect hook blunder
Armand1@lemmy.world 2 weeks ago
I recently ran a session and wrote an internal blog post about why useEffect was a dangerous crutch that should be avoided wherever possible. This was due to complicated logic and unexpected interaction bugs.
This is a little different but I still feel vindicated.
Awkwardparticle@programming.dev 1 week ago
You are correct, useEffect can be dangerous if you don’t know exactly what you are doing. I would go so far as to say that most people use it incorrectly. This includes myself, I am not great at using React and end up using it in the wrong places, which according to a colleague, it should just be avoided if possible.