developit/htm
View on GitHub ↗ ★ 9,050 JavaScript
Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
58 mentions on Hacker News by 44 people: 6 stories, 52 comments · first 2018-11-21 · latest 2026-08-05
20082026
-
…tagged string. Which is painfully obvious when you actually look at the implementations of HTM: https://github.com/developit/htm/blob/master/src/index.mjs#L... or lit-html: https://github.com/Polymer/lit-html/blob/master/src/lib/temp...
comment by dmitriid · 2018-11-23 · in Hyperscript Tagged Markup: JSX alternative using standard tagged templates -
…they "work as code" and "have support to optimize it, compile it, etc."? Here's HTM's main function https://github.com/developit/htm/blob/master/src/index.mjs#L... It: concatenates strings, parses (via regexes), then concatenates again.…
comment by dmitriid · 2018-11-23 · in Hyperscript Tagged Markup: JSX alternative using standard tagged templates