preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
950 stars 148 forks source link

Using without webpack #550

Closed caxapexac closed 2 years ago

caxapexac commented 2 years ago

https://github.com/preactjs/preact-compat#use-without-webpackbrowserify jsfiddle example in readme doesn't work

readme says preact-compat is included into preact X but I can't see it in https://unpkg.com/preact

expected solution that doesn't work either:

<script src="//unpkg.com/htm"></script>
<script src="//unpkg.com/preact"></script>
<script src="//unpkg.com/prop-types/prop-types.min.js">
<script src="//unpkg.com/preact-compat">
<script>
    const { Component, h, render } = window.preact;
    const ReactDOM = window.preactCompat;
</script>
caxapexac commented 2 years ago

Just found explanation here https://github.com/preactjs/preact/issues/1961

caxapexac commented 2 years ago

Archive this repo as it leads to misunderstanding