htm icon indicating copy to clipboard operation
htm copied to clipboard

Include Preact signal

Open HappyStriker opened this issue 1 year ago • 3 comments

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

HappyStriker avatar Sep 06 '22 23:09 HappyStriker

+1 for this

arturi avatar Sep 13 '22 19:09 arturi

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>

mujahidfa avatar Sep 25 '22 10:09 mujahidfa