News for hackers. Stuff that matters.
Re:Making Sense of React Server Components by paulddraper on Wednesday September 06, 2023 @02:32PM (#37409150)
React does full tree redraws (well, unless you use memo).

useEffect is for side-effects.

Re:Making Sense of React Server Components by keb_ on Wednesday September 06, 2023 @02:36PM (#37409197)
It does not. Child components will only render when their parent component re-renders or for example, its state changes.

Either way, this is different than what I mean with Mithril.js (it does full tree re-renders on event handler calls or when a manual redraw function is called).

Re:Making Sense of React Server Components by Izkata on Wednesday September 06, 2023 @03:05PM (#37409610)
Class components have "shouldComponentUpdate()" that avoids this entirely.