4 ms·
It seems odd to characterize a declarative approach to rendering as an optimization. The draw for me is that I don't need to manage the state of a bunch of DOM
by Felz 8y ago
It seems odd to characterize a declarative approach to rendering as an optimization.
The draw for me is that I don't need to manage the state of a bunch of DOM objects anymore. I wouldn't even mind if React were slower- the performance isn't really the point.
I don't and will never want web components for this reason.
- Touche 8y agoYou can use vdom in web components. This article, that you didn't read, talks about using one.
- Rusky 8y agoVirtual DOM isn't what makes things declarative. You can solve the same problem by diffing the model instead of the render output- the important part is that you have a comprehensive way to tell what parts of the view need to change.