3 ms·
I have discovered this little gem, allowing you to do the same in pure Javascript: https://github.com/leeoniya/domvm https://github.com/leeoniya/domvm The equi
by rakoo 11y ago
I have discovered this little gem, allowing you to do the same in pure Javascript: https://github.com/leeoniya/domvm https://github.com/leeoniya/domvm
The equivalent would be something like
function() selected { return true }
["h2", {class: function() {if (selected()) {return "selected"}}}, "Hello"]
Not as clean, but still usable IMO