Skip to content

Conversation

@jordanpapaleo
Copy link

fixes#9703

var partialState = {};
partialState[name] = value;
this.setState(partialState);
this.setState(() => partialState);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer ES5 code 😯

@jordanpapaleo
Copy link
Author

jordanpapaleo commented May 23, 2017 via email

@jordanpapaleo
Copy link
Author

Put in PR#9748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Functional .setState() as default in docs, tutorials and first steps guides

3 participants