Skip to content

Instantly share code, notes, and snippets.

@Joe1220
Created August 7, 2018 03:47
Show Gist options
  • Save Joe1220/0ee93df467205c529dd27137034d1915 to your computer and use it in GitHub Desktop.
Save Joe1220/0ee93df467205c529dd27137034d1915 to your computer and use it in GitHub Desktop.
// Wrong
this.setState({
counter: this.state.counter + this.props.increment,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment