developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.64k stars 169 forks source link

Include Preact signal #229

Open HappyStriker opened 1 year ago

HappyStriker commented 1 year ago

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. As this is an amazing improvement to the way to use Preact I am wondering if there are any plans to include it into the whole htm standalone package?

This would be amazing.

Thanks you very much!

Sincerely, Happy Striker

arturi commented 1 year ago

+1 for this

mujahidfa commented 1 year ago

I love this idea but I can't wait longer, so I made a standalone version of Preact + HTM + Preact Signals myself!

Y'all can check it out here: preact-htm-signals-standalone

Usage:

<script type="module">
  import { html, render, signal } from "https://cdn.jsdelivr.net/npm/preact-htm-signals-standalone/dist/standalone.js";
  ...
</script>
badpenguin commented 1 year ago

Hi, where i can find ESM modules for this to be included directly into a buildless app? I'm creating a PWA and need to store the files locally for offline usage. Thanks.