Browse Source

Merge pull request #290 from NilSet/master

Fix setState example code
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
825bae0780
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/reference-react-component.md

2
content/docs/reference-react-component.md

@ -347,7 +347,7 @@ Subsequent calls will override values from previous calls in the same cycle, so
```js
this.setState((prevState) => {
return {counter: prevState.quantity + 1};
return {quantity: prevState.quantity + 1};
});
```

Loading…
Cancel
Save