4 ms·
Is that true though? The shadow DOM diffing isn't the point of React. The point was to turn rendering into a function that takes application state and returns t
by wtetzner 9y ago
Is that true though? The shadow DOM diffing isn't the point of React. The point was to turn rendering into a function that takes application state and returns the view. The shadow DOM diffing stuff is just an implementation detail that made this model fast enough to be practical.
- deleted 9y ago[deleted]
- kybernetikos 9y agoI would love to see a standardised `element.transformChildrenTo(newChildren)` or some such. Also, a built in elem` string handler function ` that can allow interpolation of other elements, arrays of elements, or objects for attributes. That would allow you to do nearly all of what react does without any external libraries and a very small amount of code.
- JeremyBanks 9y agoYou're mixing up react's virtual dom with the native shadow dom.
- wtetzner 9y agoYes, sorry, I meant virtual DOM. But other than that, my point still stands.