web-component-base
web-component-base copied to clipboard
feat: smart diffing
Currently, it's just very crude: we compare previous dom to incoming dom and if there is change, we wipe the whole children and replace.
We can detect changes and call specific DOM manipulation:
- if property = update property / set attribute
- if child = call diff on child
- if text node = replace text node
- etc.