2 ms·
virtual-dom is all you need: https://github.com/Matt-Esch/virtual-dom https://github.com/Matt-Esch/virtual-dom There is a reason why both elm and mercury uses
by malandrew 12y ago
virtual-dom is all you need:
https://github.com/Matt-Esch/virtual-dom https://github.com/Matt-Esch/virtual-dom
There is a reason why both elm and mercury uses virtual-dom under the hood to generate and manipulate the DOM.
Plus you can render server-side:
https://github.com/nthtran/vdom-to-html https://github.com/nthtran/vdom-to-html
If you still want to work with existing html like templates, there is this project:
https://github.com/TimBeyer/html-to-vdom https://github.com/TimBeyer/html-to-vdom