From 9e91a21ba8a04dbd6e5e216a145b3857b6204afc Mon Sep 17 00:00:00 2001 From: Dex Date: Fri, 18 Sep 2026 23:48:42 +0200 Subject: [PATCH] Explain that the useState setter triggers a re-render in Quick Start --- src/content/learn/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/index.md b/src/content/learn/index.md index ab1d12afb52..1854b156444 100644 --- a/src/content/learn/index.md +++ b/src/content/learn/index.md @@ -336,7 +336,7 @@ function MyButton() { } ``` -React will call your component function again. This time, `count` will be `1`. Then it will be `2`. And so on. +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. If you render the same component multiple times, each will get its own state. Click each button separately: