Skip to content

Commit e1aa3de

Browse files
committed
removed extra parenthesis around argument for set state arrow function
1 parent ffa8b12 commit e1aa3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/React/InconsistentStateUpdate.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Instead, the callback form of <code>setState</code> should be used:
3636
</p>
3737

3838
<sample language="javascript">
39-
this.setState((prevState) => ({
39+
this.setState(prevState => ({
4040
counter: prevState.counter + 1
4141
}));
4242
</sample>

0 commit comments

Comments
 (0)