-
Notifications
You must be signed in to change notification settings - Fork 76
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 Hook #1
Comments
Line 48: React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render |
Hey!
after useState and useEffect, bc that return null its the actual problem. |
The rules of hooks are that it cannot be in loops, conditions, or nested functions https://stackoverflow.com/questions/57620799/react-hook-useeffect-is-called-conditionally
|
Line 46: React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
please explain.
The text was updated successfully, but these errors were encountered: