Skip to content

Instantly share code, notes, and snippets.

@Frodigo
Created September 8, 2021 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frodigo/f54531b4838c8964781a40925828fb55 to your computer and use it in GitHub Desktop.
Save Frodigo/f54531b4838c8964781a40925828fb55 to your computer and use it in GitHub Desktop.
state
// What's wrong with that code?
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