Monday, January 31, 2022

web: HTM vs JSX, with Preact or React

 developit/htm: Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support. @GitHub

htm is JSX-like syntax in plain JavaScript - no transpiler necessary.

Develop with React/Preact directly in the browser, then compile htm away for production.

It uses standard JavaScript Tagged Templates and works in all modern browsers.