Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add preact/compat preset #266

Merged
merged 2 commits into from Sep 19, 2022
Merged

feat: add preact/compat preset #266

merged 2 commits into from Sep 19, 2022

Conversation

GoodbyeNJN
Copy link
Contributor

@GoodbyeNJN GoodbyeNJN commented Sep 13, 2022

According to the official documentation of Preact, we can import React API from the preact/compat package.
So I added this preset to facilitate use.
https://preactjs.com/guide/v10/switching-to-preact/
https://preactjs.com/guide/v10/getting-started/#aliasing-react-to-preact

@GoodbyeNJN GoodbyeNJN changed the title Main Add preact/compat preset Sep 13, 2022
@antfu antfu changed the title Add preact/compat preset feat: add preact/compat preset Sep 19, 2022
@antfu antfu merged commit c1c9752 into unplugin:main Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants