3 ms·
Is there a single-file version of virtual dom available for download? I am not finding any instructions in the repo on how to build it. Also, why does it have s
by ufo 13y ago
Is there a single-file version of virtual dom available for download? I am not finding any instructions in the repo on how to build it. Also, why does it have so many files in the first place?
- Raynos 13y agoI opened this PR on virtual-dom ( https://github.com/Matt-Esch/virtual-dom/pull/67 https://github.com/Matt-Esch/virtual-dom/pull/67 ) to get a single file version into the git repo. It has many folders because the `vtree`, `vdom` and `h` are fundamentally seperate concepts. Again each one is seperated into it's own files, this allows you to just require the `is-x` functions or the `diff` function alone without having to depend on the entire implementation. It's also easier to maintain code if it's not one big file. There are plans to break vtree & vdom out - https://github.com/Matt-Esch/vtree https://github.com/Matt-Esch/vtree - https://github.com/Matt-Esch/vdom https://github.com/Matt-Esch/vdom Note `vdom` is an implementation detail, we could also write `vcanvas` or `vwebgl`