-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Warning: "Prop className
did not match"
#333
Comments
This error happens 99% of the time because either |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
It seems like when a variable name is not unique, a
className
did not match warning is generated, and the style is not ultimately applied in the browser because of the mismatch.Here is a minimal example of what I am experiencing:
Non-unique name "
A
" causes the error and not-applied styles.If I change the variable name like this, the issue goes away and everything behaves as expected.
For additional information, this is the error in the console:
Thanks in advance and let me know if I can provide any additional information!
The text was updated successfully, but these errors were encountered: