3 ms·
One way React can be faster than hand-written code is by batching all dom manipulation into animation frames.
by toomim 4y ago
One way React can be faster than hand-written code is by batching all dom manipulation into animation frames.
- ricardobeat 4y agoThe rendering code here is already batched since everything happens within a single render() call. And unless you’re using react fiber, its rendering is also synchronous.
- sarchertech 4y agoHandwritten JS could also batch DOM manipulation (without the need for virtual dom comparison).
- SemanticStrengh 4y agohttps://github.com/wilsonpage/fastdom https://github.com/wilsonpage/fastdom
- 1marc 4y agoOoo fastdom looks great! Thanks for the link.
- SemanticStrengh 4y agohttps://www.youtube.com/watch?v=VKMw2it8dQY https://www.youtube.com/watch?v=VKMw2it8dQY