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

chore(readme): fix readme import #2

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

luke-h1
Copy link
Contributor

@luke-h1 luke-h1 commented Dec 22, 2022

This PR:

  • Fixes the code example which seems to use named exports. It seems that the package currently just has a default export and trying to import Balancer as a named export results in the following problem:
Module '"react-wrap-balancer"' has no exported member 'Balancer'. Did you mean to use 'import Balancer from "react-wrap-balancer"' instead?ts(2614)

Notes:

  • Hope this PR is ok to make, not sure if named exports are planned to be released soon!

@vercel
Copy link

vercel bot commented Dec 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-wrap-balancer ✅ Ready (Inspect) Visit Preview Dec 22, 2022 at 7:26PM (UTC)

@shuding
Copy link
Owner

shuding commented Dec 22, 2022

Thank you, nice catch!

@luke-h1 luke-h1 deleted the chore/update-readme branch December 22, 2022 19:55
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