4 ms·
Having grown up with this, I think it's part of the reason why React feels so natural and "right" to me. Whenever I've used frameworks based on data-binding, m
by kristiandupont 8y ago
Having grown up with this, I think it's part of the reason why React feels so natural and "right" to me.
Whenever I've used frameworks based on data-binding, my mind tries to rely on an analogy like modular synthesis where elements are connected with wires (https://modularsynthesis.com/DJB-synth.jpg https://modularsynthesis.com/DJB-synth.jpg). That works great for tiny demos but poorly for highly dynamic UI's. Maybe I just need a different analogy to properly grasp it.
- sfvisser 8y agoWeird comparison. The native DOM already performs some kind of buffering. All changes to the DOM tree in one single JS thread are rendered at once. React just has a slightly simplified virtual version of the DOM so it can be smarter about reuse, possibly causing speedups.
- kristiandupont 8y agoI just meant that the virtual DOM feels like a backbuffer that you can render "from scratch" with every frame. I am well aware that the technicalities are quite different.
- k__ 8y agoYes, I think unidirectional data flow is the main selling point of React.