removed extra parenthesis around argument for set state arrow function

This commit is contained in:
imsolost
2019-01-23 17:05:32 -08:00
parent ffa8b12d48
commit e1aa3def25

View File

@@ -36,7 +36,7 @@ Instead, the callback form of <code>setState</code> should be used:
</p>
<sample language="javascript">
this.setState((prevState) => ({
this.setState(prevState => ({
counter: prevState.counter + 1
}));
</sample>