Hacker GitHub

← All repos

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

Mentions per year 58 mentions · busiest year 2020 (15)
20082026
  1. …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. ▲ 2
    HTM (Hyperscript Tagged Markup)
    story by fagnerbrack · 2018-12-18 · 0 comments
  3. 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?
  4. …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...
  5. …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.…
  6. ▲ 146
    Hyperscript Tagged Markup: JSX alternative using standard tagged templates
    story by truth_seeker · 2018-11-22 · 86 comments
  7. ▲ 5
    HTM – Hyperscript Tagged Markup
    story by reimertz · 2018-11-21 · 0 comments
  8. ▲ 5
    HTM (Hyperscript Tagged Markup)
    story by glassworm · 2018-11-21 · 0 comments