2 ms·
Yeah, drawing everything to the screen every frame makes a lot of things easy. You can just update state and it will get drawn on the next frame. DOM UI librar
by hombre_fatal 2y ago
Yeah, drawing everything to the screen every frame makes a lot of things easy. You can just update state and it will get drawn on the next frame.
DOM UI libraries like React have the harder problem of surgical tree updates since they can't just redraw from scratch.
It's where all of their complexity comes from. Not even React's basic primitives like useState would be necessary if you were just going to redraw the whole UI on the next frame.