preactjs / preact-compat

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

throw an error when using Preact 10 with Preact-compat #537

Closed JoviDeCroock closed 4 years ago

JoviDeCroock commented 4 years ago

Since I've seen a lot of people run into this issue I decided to make a pull request for this, I think createContext should be the safe pick in terms of X checking.