4 ms·
I really like Developit's (makers of Preact) JSX alternative 'htm'[1] which was inspired by lit-html[2]. It uses tagged template literals so you can run them in
by flanbiscuit 6y ago
I really like Developit's (makers of Preact) JSX alternative 'htm'[1] which was inspired by lit-html[2]. It uses tagged template literals so you can run them in the browser during development without needing to compile to hyperscript first (but you should compile during production builds)
1. https://github.com/developit/htm https://github.com/developit/htm
2. https://lit-html.polymer-project.org/guide https://lit-html.polymer-project.org/guide
- CraftThatBlock 6y agoI agree. htm in my eyes in a mix between JSX and templates, and does strike a good balance.