This post brought to you by the htm library for JS. It converts your jsx-looking string to HTML, without using JSX.
The code strikes me as elegant.
When I pass an extra closing tag, the exception says "h.push is not defined"
When I miss a closing tag, it returns the wrong type.
https://www.npmjs.com/package/htm
=> More informations about this toot | View the thread | More toots from jessitron@hachyderm.io
text/gemini
This content has been proxied by September (3851b).