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

Is there any way to use preact in Docz? #525

Closed evont closed 5 years ago

evont commented 5 years ago

I want to use docz to write the components documents, but when I set react alias as preact-compat, it warns me that "export 'useState' was not found in 'react'", is there any way to use preact in Docz?

marvinhagemeister commented 5 years ago

Hooks are available in our next major version for Preact. The release notes have a section on how to upgrade. Note that compat has moved to core. If you run into an issue please report it over at our main repo 🙂