mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
removed extra parenthesis around argument for set state arrow function
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user