Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa8b12 commit e1aa3deCopy full SHA for e1aa3de
1 file changed
javascript/ql/src/React/InconsistentStateUpdate.qhelp
@@ -36,7 +36,7 @@ Instead, the callback form of <code>setState</code> should be used:
36
</p>
37
38
<sample language="javascript">
39
-this.setState((prevState) => ({
+this.setState(prevState => ({
40
counter: prevState.counter + 1
41
}));
42
</sample>
0 commit comments