News for hackers. Stuff that matters.
Re:Making Sense of React Server Components by Scarblac on Wednesday September 06, 2023 @03:57PM (#37410426)
I'm 49 and started with the Commodore 64, and function based components with hooks are so much cleaner than the old class based components, it's unbelievable.

The classes had closely related functionality spread out over several different methods making them hard to understand at a glance, function based components are very concise.

I think people who dislike hooks tend to overuse useEffect (it's rarely needed) and to do too much inside components rather than inside custom hooks.

There are no comments on this comment yet.