From 4ac5d243235bba54fbff75e64afab3abae5babc0 Mon Sep 17 00:00:00 2001 From: Tirthraj Chavan Date: Sat, 12 Sep 2026 22:55:01 +0530 Subject: [PATCH] docs: clarify that 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..43cd8960c02 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()` tells React that its state has changed, which 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: