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.

    • noahm@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      8 days ago

      Specifically I hate it as a prefix. It’s even worse when else clauses become involved!

      x = "this is great"
      y = "this is awful"
      z = false
      
      unless(z)
        puts(y)
      else
        puts(x)
      end