Comment

Comment by brigadier132

React is fundamentally bad technology. I know there are historical reasons for the virtual dom but the reasons that justified it don't exist anymore. If you want to do anything interesting with react that involves interacting directly with browser APIs you need to deal with these absurd use effect hoops to initiate state with references to dom nodes.

I've worked on 4 large react code bases and they always devolve into these blobs of non-deterministic async state with unpredictable performance.

I actually like JSX and the component model so I just use solid-js which is everything I like about react but with effortless performance and you can actually get away with never using effects so your code can actually be deterministic.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton