News for hackers. Stuff that matters.
Re:Show HN: Nue – Apps lighter than a React button by eastbound on Tuesday April 01, 2025 @03:10PM (#43550345)
> React’s baseline isn’t a monster.

Yes it is. It’s not size, it’s logic: Every time the component rerenders, the root loop is executed. Why? The root loop reassigns every useEffect, reruns every useState, every other hook (and useSearchParams is executed n times for n components that need it in the hierarchy) when only the HTML needs rerender.

(Yes the programmer can optimize/memoize, and yes “a hook’s execution time is very short” (but multiplied by every cell in the table, when needed)). Must be the fault of the programmer if the framework has a super-intensive concept at the root.)

Re:Show HN: Nue – Apps lighter than a React button by code_biologist on Tuesday April 01, 2025 @03:33PM (#43550559)
I'm old enough to remember when this simplified model was why people thought React was better than alternatives.
Re:Show HN: Nue – Apps lighter than a React button by lastdong on Tuesday April 01, 2025 @04:07PM (#43550817)
I know, right? And where is Preact, Inferno and others sped-up React-like now?
Re:Show HN: Nue – Apps lighter than a React button by teg4n_ on Tuesday April 01, 2025 @06:44PM (#43552052)
What do you mean where are they? They are still around. Preact especially is doing really cool work adding signals on top of a similar to react model.
Re:Show HN: Nue – Apps lighter than a React button by fijiaarone on Tuesday April 01, 2025 @08:22PM (#43552619)
Yeah, react developers don’t even realize that there is execution time as well as download time for an app.
Re:Show HN: Nue – Apps lighter than a React button by lucsky on Wednesday April 02, 2025 @02:34PM (#43559860)
> It’s not size

That's what TFA is complaining about: size. But nice pivot, hope your head isn't spinning too much.