htm icon indicating copy to clipboard operation
htm copied to clipboard

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.

Results 52 htm issues
Sort by recently updated
recently updated
newest added

I am using htm and Preact as follows inside a simple functional component. This component is imported by a class component where it is swapped out according to a switching...

Is there a plug-in to use "html2react" and "htm" together? https://www.npmjs.com/package/html2react ```js const html = htm.bind(html2react); let reactvdom=html` Foo Bar {}}>Baz ` ``` For example, the attribute "class" is converted...

I saw this issue occur in real life, and noticed that the error message is very unclear: > TypeError: unknown: `(intermediate value)(intermediate value).push` is not a function I’m not sure...

This works for me: ```js return html` Quiz ${entriesUi} `; ``` If I don’t wrap the fragment around the roots, I’m getting this error: > Warning: Each child in a...

question
has fix
discussion

I was wondering if there is any way to retain this information from the tagged template. The static parts could be used as a cache key for the output of...

While converting a project from JSX to htm i missed a online tool (or a codepen/fiddlejs or babel repl setup) to run babel with babel-plugin-transform-jsx-to-htm I tried to configure [Babel...

enhancement
discussion

It would be nice to have a babel macro that automatically runs the babel plugin to remove the runtime. That way, this project would work out of the box with...

enhancement
help wanted
good first issue
discussion
proposal

https://github.com/esxjs/esx looks a lot like HTM, but instead of handling components as ``, you have to (get to?) pre-register component names, like this: `esx.register({Foo})` Then you can use custom components...

The `` notation mentioned in the README for closing an element is unusual and not well-known (right?) Is this a standard convention? If so, can you add a link to...

documentation
discussion