News for hackers. Stuff that matters.
Re:Practical Front-End Architecture by bacro on Tuesday September 21, 2021 @11:15AM (#28605864)
The useValidation hook needs to add data to the dependency list of its useEffect or else it will run on each render unnecessarily.
Re:Practical Front-End Architecture by jaredgorski on Tuesday September 21, 2021 @12:24PM (#28606677)
Ha! Yes. It’s pseudo code though. Please don’t copy and paste it.