DEV Community

Discussion on: Effects are not lifecycles

Collapse
 
mikevelazcomtz profile image
Miguel Angel Velazco

I just have one thing against useEffect and is my own opinion right now. For me, functions should do only one thing and do it right. If you write a function that sums, it shouldn't worry about which conditions are set in their input parameters.

This weird, innecesary race conditions that the second parameter put into the game just make me miss react lifecycle more.