Skip to main content
Deno 2 is finally here šŸŽ‰ļø
Learn more

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)