You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -336,7 +336,7 @@ function MyButton() {
336
336
}
337
337
```
338
338
339
-
React will call your component function again. This time, `count` will be `1`. Then it will be `2`. And so on.
339
+
Calling `setCount` triggers a re-render: React will call your component function again. This time, `count` will be `1`. Then it will be `2`. And so on.
340
340
341
341
If you render the same component multiple times, each will get its own state. Click each button separately:
0 commit comments