News for hackers. Stuff that matters.
Re:JavaScript Is Enough by wg0 on Sunday March 22, 2026 @04:14PM (#47481668)
You can now use React Compiler and there would be no virtual DOM.

Already being used in production at large code bases.

Re:JavaScript Is Enough by puskuruk on Sunday March 22, 2026 @04:25PM (#47481772)
React Compiler(originally react-forget) is a build-time tool that automatically optimizes your React app by automatically memoizing your code. It only replaces the manual ceremony of useMemo, useCallback, and React.memo with automatic caching at compile time. So, it's fixing the problem they introduced by React itself or you we can call it a "trade-off" in a sense
Re:JavaScript Is Enough by dashersw on Sunday March 22, 2026 @04:57PM (#47482054)
Yeah afaik React Compiler doesn't really replace virtual DOM.
Re:JavaScript Is Enough by bogdan on Sunday March 22, 2026 @06:04PM (#47482696)
You can and you can't. There's still plenty of very popular libraries that don't behave correctly with it. That's more on the libraries than on the compiler but that's the current state of things.
Re:JavaScript Is Enough by ksh09 on Monday March 23, 2026 @05:02AM (#47486917)
I genuinely don't know what lead to the compilers when we already had a simpler concept of signals.
Re:JavaScript Is Enough by jazzypants on Monday March 23, 2026 @10:11AM (#47489827)
The React Compiler does not remove the virtual DOM. You literally cannot use React without a virtual DOM.