We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92bad2 commit d3bd0f9Copy full SHA for d3bd0f9
src/content/reference/react/act.md
@@ -70,13 +70,13 @@ function Counter() {
70
}
71
72
useEffect(() => {
73
- document.title = `You clicked ${this.state.count} times`;
+ document.title = `You clicked ${count} times`;
74
}, [count]);
75
76
return (
77
<div>
78
- <p>You clicked {this.state.count} times</p>
79
- <button onClick={this.handleClick}>
+ <p>You clicked {count} times</p>
+ <button onClick={handleClick}>
80
Click me
81
</button>
82
</div>
0 commit comments