-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
displayName? not available in instance... #2285
Comments
React does not deep clone props/state, if you want the benefits of using |
@cigzigwon You can get the displayName with |
Ok, I didn't realize that since I'm new to React. Thx guys! |
@cigzigwon There is almost always someone knowledgeable online in our IRC channel, for all your getting-started related questions, if you feel inclined. |
JSX will infer the component's name from the variable assignment and specify the class's displayName accordingly.
Really?
This is not available in a class instance of React. Not even if it is set explicitly. Also, componentDidUpdate prevState seems to be the current state... I'm not sure if this is because of how browserify is bundling the JS or what. for v0.11.2. I've tried everything and prevState always logs the current state post update.
The text was updated successfully, but these errors were encountered: