We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
state
1 parent cba4acc commit 1bc8e5eCopy full SHA for 1bc8e5e
src/index.js
@@ -19,7 +19,7 @@ const UseEffect = () => {
19
<code>useEffect</code>
20
</legend>
21
22
- <p>{state}</p>
+ <p>state: {state}</p>
23
<button onClick={() => setState(0)}>update state</button>
24
25
<p className="bad">repaint count: 2 (try to notice state flickering)</p>
@@ -55,7 +55,7 @@ const UseLayoutEffect = () => {
55
<code>useLayoutEffect</code>
56
57
58
59
60
61
<p className="ok">repaint count: 1</p>
0 commit comments