htm
htm copied to clipboard
Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
It would be nice if there was documentation on how to use this with server side rendering. Such that: 1. Server sends the prerendered compontent 2. Client receives the prerendered...
Suppose use-case for conditional applying classes: ```js import { render } from "preact"; import { html } from "htm/preact"; let el = document.createElement("div"); render( html` `, el ); console.log(el.innerHTML); //...
An exception occurred when parsing an unclosed label using htm, but no error was reported. This leads to the wrong virtual dom object. An exception occurred when parsing an unclosed...
Not the same as #109. That would be useful to have insertable attribute names: ```js html`` // same as html`` ``` ## Practical cases Optional attributes: ```js html`` ``` Private...
I've been [toying around with optimizing Tagged Templates](https://gist.github.com/developit/7118c02bf0270e1d5751d2a9e22c1faa) by merging literal field values (strings, numbers and booleans) into their adjacent static part and collapsing the adjacent static parts into a...
Does htm follow the same syntax / inference rules as preact as far as attributes / properties? Or did it adopt the lit-html syntax? Either way, it would be helpful...
put up a demo I was using to check out features, feel free to use any of it if you want https://github.com/jeremy-coleman/preactive-htm it has both rollup and webpack builds with...
Hey there, thank you for providing `htm` and thus a simple build tools free solution to use Preact! Recently a new extension to Preact has been published, namely [@preact/signals](https://github.com/preactjs/signals). As...
`hooks` was [exported in the type definition file](https://github.com/developit/htm/blob/master/src/integrations/preact/index.d.ts#L2), but not in the source code.
example ```js const { on } = require('events'); const { request } = require('https'); const html = require('htm'); function h(type, props, ...children) { return { type, props, children }; }...