Skip to content

Commit 919fc6c

Browse files
committed
Use code blocks in docs for code references
1 parent 70fa3c8 commit 919fc6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/no-access-state-in-setstate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Prevent using this.state within a this.setState (no-access-state-in-setstate)
22

3-
This rule should prevent usage of this.state inside setState calls.
3+
This rule should prevent usage of `this.state` inside setState calls.
44
Such usage of this.state might result in errors when two state calls is
55
called in batch and thus referencing old state and not the current
66
state. An example can be an increment function:
@@ -11,7 +11,7 @@ function increment() {
1111
}
1212
```
1313

14-
If these two setState operations is grouped together in a batch it will
14+
If these two `setState` operations is grouped together in a batch it will
1515
look be something like the following, given that value is 1:
1616

1717
```

0 commit comments

Comments
 (0)