• Armand1@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    7 hours 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 recently experienced over-complicated logic and unexpected interaction bugs.

    This is a little different but I still feel vindicated.

    • Awkwardparticle@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 hours 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.