Skip to content

Commit d3bd0f9

Browse files
authored
Update act.md (#7363)
docs: fixed typo act md counter fn grammar error
1 parent c92bad2 commit d3bd0f9

File tree

1 file changed

+3
-3
lines changed
  • src/content/reference/react

1 file changed

+3
-3
lines changed

src/content/reference/react/act.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ function Counter() {
7070
}
7171

7272
useEffect(() => {
73-
document.title = `You clicked ${this.state.count} times`;
73+
document.title = `You clicked ${count} times`;
7474
}, [count]);
7575

7676
return (
7777
<div>
78-
<p>You clicked {this.state.count} times</p>
79-
<button onClick={this.handleClick}>
78+
<p>You clicked {count} times</p>
79+
<button onClick={handleClick}>
8080
Click me
8181
</button>
8282
</div>

0 commit comments

Comments
 (0)