News for hackers. Stuff that matters.
Re:Introducing react.dev by rkeene2 on Thursday March 16, 2023 @03:48PM (#35187372)
I find class-based components work better for some things, mainly that need to manage complicated lifecycles that hooks do a pretty bad job of.
Re:Introducing react.dev by bayesian_horse on Friday March 17, 2023 @09:55AM (#35197103)
I recommend useReducer, if you can't use Redux. Yes, it works with non-serializable objects (evenrefs if you must).