News for hackers. Stuff that matters.
Re:TodoMVC App Written in Vanilla JavaScript by toomim on Saturday May 07, 2022 @11:01AM (#31295045)
One way React can be faster than hand-written code is by batching all dom manipulation into animation frames.
Re:TodoMVC App Written in Vanilla JavaScript by ricardobeat on Saturday May 07, 2022 @11:10AM (#31295143)
The 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.
Re:TodoMVC App Written in Vanilla JavaScript by sarchertech on Saturday May 07, 2022 @11:11AM (#31295155)
Handwritten JS could also batch DOM manipulation (without the need for virtual dom comparison).
Re:TodoMVC App Written in Vanilla JavaScript by SemanticStrengh on Saturday May 07, 2022 @11:17AM (#31295210)
Re:TodoMVC App Written in Vanilla JavaScript by 1marc on Saturday May 07, 2022 @12:11PM (#31295837)
Ooo fastdom looks great! Thanks for the link.
Re:TodoMVC App Written in Vanilla JavaScript by SemanticStrengh on Saturday May 07, 2022 @05:07PM (#31298598)