3 ms·
There is hyperscript which is a bit more "mature": https://github.com/dominictarr/hyperscript#example https://github.com/dominictarr/hyperscript#example There
by awalGarg 10y ago
There is hyperscript which is a bit more "mature": https://github.com/dominictarr/hyperscript#example https://github.com/dominictarr/hyperscript#example
There is virtual-hyperscript which ports the above to virtual-dom: https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript https://github.com/Matt-Esch/virtual-dom/tree/master/virtual...
I made a similar-ish "library" about an year ago: https://gist.github.com/awalGarg/8a0e18c6fe87456d885f https://gist.github.com/awalGarg/8a0e18c6fe87456d885f
And there are all sorts of similar DSLs you can find on npm/github for JS. In a bit less time, you can write your own. In even lesser time, you can just do what you used to do prior to all this. This does however seem like a pretty popular idea in the JS community which keeps getting "discovered" every now and then.