I'm using styled-components
in my react component library, but while I'm bundling the project and try to test it locally I get Warning: Invalid hook call
error.
#3914
Unanswered
emadbaqeri
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, I'm using
styled-components
in my react component library. I have built a single component here called<Button />
. After bundling the project usingbabel
and adding that to a simple react app bootstrapped usingcreate-react-app
and starting using the<Button />
component in the app I'm getting the errorWarning: Invalid hook call
and the browser screen goes white. Do you have any idea how to fix this? Here are also the library repo and the playground repo links.Beta Was this translation helpful? Give feedback.
All reactions