Skip to main content

Don’t use this for now, use https://esm.sh/preact instead

This repo was going to be an up-to-date build of Preact hosted at deno.land/x/preact. However, due to limitations in how jsx-runtime can be served from deno.land/x, this module would be inferior to the version of Preact hosted by esm.sh.

If a workaround can be found or if something changes that fixes this problem, deno.land/x/preact will be revived to serve its original intent.

To learn more about using esm.sh/preact and JSX in Deno, here’s the official docs. The https://esm.sh homepage might also be helpful.

Note from repo creator

I am not a Preact maintainer or contributor. I wanted a version of Preact that was hosted on https://deno.land/x, and I saw the module name “preact” was still available. I reserved it with intent to maintain it. However, I haven’t found a way to make it as easy-to-use as esm.sh.

If you are a Preact maintainer / author / Jason Miller, I’d be happy to hand this repo over along with deno.land/x/preact. Here’s my email and twitter.

If anybody can help out with the jsx-runtime problem, let me know in #2. I haven’t eliminated the possibility that it doesn’t work because I don’t know what I’m doing. (likely)