Closed caxapexac closed 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>
Just found explanation here https://github.com/preactjs/preact/issues/1961
Archive this repo as it leads to misunderstanding
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: