you are viewing a single comment's thread
view the rest of the comments
[–] 24 points 1 year ago* (last edited 1 year ago) (1 child)

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 recently experienced over-complicated logic and unexpected interaction bugs.

This is a little different but I still feel vindicated.

  • source
  • hideshow 1 child comment
  • 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.

  • source
  • parent