News for hackers. Stuff that matters.
Re:Is React impacted by Meta layoff? by cercatrova on Wednesday November 09, 2022 @02:58PM (#33537019)
I have something that has a lifecycle and I don't want to initialize and destroy the state every time. I encapsulate that into a function, call it a hook, and go about my day knowing that I don't have to care about redoing the lifecycle every single time.

It's basically a class that has pre-written lifecycle functions.

There are no comments on this comment yet.