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
-
…a parser, turning your example into something more like: return htm`<Some pseudoHTMLcode />`; https://github.com/developit/htm
comment by Klathmon · 2018-12-31 · in React.js cheatsheet -
▲ 2
HTM (Hyperscript Tagged Markup)story by fagnerbrack · 2018-12-18 · 0 comments
-
You're likely thinking of https://github.com/developit/htm .
comment by sophiebits · 2018-12-03 · in How Does React Tell a Class from a Function? -
…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 -
▲ 146
Hyperscript Tagged Markup: JSX alternative using standard tagged templatesstory by truth_seeker · 2018-11-22 · 86 comments
-
▲ 5
HTM – Hyperscript Tagged Markupstory by reimertz · 2018-11-21 · 0 comments
-
▲ 5
HTM (Hyperscript Tagged Markup)story by glassworm · 2018-11-21 · 0 comments