No I do not. You will have to work
very hard to back up the claim that modern DOM operations are not costly. Plenty of lookups can cause repaint or reflow.
Scenario A: (Vdom-like approach)
- Render x with dimensions x,y,z,w.
- Store the reference to the created DOM elements.
- Store dimensions it was created with
If you do not go towards this way, and actually query DOM-land to get the dimensions you need to check against, you will run into issues. By storing your state alongside the endpoint, you will only have to diff against the stored state and props, not the endpoints themselves.
That COMPLETELY bypasses DOM access, and only updates the changed elements.
Show me how bypassing this and just using dom alone is superior. Or how adding layers of layers of js-land checks is not approaching the solution that vdom and differs already arrived at.