Entropy handling should be the goal for 2019 UI/Frontend engineering.
Entropy handling should be the goal for 2019 UI/Frontend engineering.
It can certainly still be greatly improved, but I think we've already made great strides in entropy handling on the front-end in recent years.
Virtual DOM is rather a desperate move - to support components life time constructor/destructor events componentWill/DidMount / Unmount.
What if you will be able to define in standard HTML/CSS something like this (as it is supported natively in Sciter)
// css
div.mycomponent {
behavior: MyComponent url(components.js);
}
// script in components.js
class MyComponent : Element {
function attached() { /*constructor*/ }
function detached() { /*destructor*/ }
… other custom component specific methods …
}
With that simple mechanism you don't need virtual DOM and its overhead at all. Component binding requires only inclusion of that CSS.But it is still far away from standardization.
Sciter uses this feature almost 10 years.
All these 10 years we have libraries of reusable components and so no need for React.
Same is about flexbox and grid: https://terrainformatica.com/2018/12/11/10-years-of-flexboxi...
Virtual DOM is not just about componentWill/DidMount/UnMount. It's when updating the view when a component's inputs (props) change that Virtual DOM shines.