-
Notifications
You must be signed in to change notification settings - Fork 142
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
react-social-login breaks when used with create-react-app v3.0.0 #137
Comments
I get the same error with the example code. When I convert the example button from using a stateless component to extending React.Component, it works. |
I need to be able to use react hooks. |
@yuchuan1 hey did you get solution to this? I am facing the same issue. |
@devapurva |
So basically its broken.. :/ |
@towfiqi |
@yuchuan1, @jangsi so basically it's brokes when you use React Hooks or Functional Component, is that what happens? |
It doesn't work with class components too. |
@towfiqi okay |
guys just read this :) Something like
} export default SocialLogin(SocialLoginButton); |
any updates for hooks? |
Still not usable with a functional component. |
Can someone share a codesabdbox or similar demo for this issue? thanks |
this is state issue, when everything is ready just show the socialbutton |
Sample repo
Steps to reproduce.
in Chrome, it shows error messages as following.
in Firefox, the error message is as following.
The text was updated successfully, but these errors were encountered: