News for hackers. Stuff that matters.
Re:React's useState should require a dependency array by merb on Saturday May 31, 2025 @07:25AM (#44143525)
Well what you did will often not stay as is and at least evolve into the antipattern (update the input from outside) the only alternative would be to create a new key to do that. And trust me there is a lot of useeffect Code which is not a good idea

There are no comments on this comment yet.