From 2627e5a52f3f11b88da01df9844d7856d907bb36 Mon Sep 17 00:00:00 2001 From: Deepika Date: Sat, 17 Oct 2026 21:55:13 +0530 Subject: [PATCH] Clarify useState update explanation --- src/content/learn/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content/learn/index.md b/src/content/learn/index.md index ab1d12afb52..297621536fc 100644 --- a/src/content/learn/index.md +++ b/src/content/learn/index.md @@ -334,9 +334,10 @@ 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 to re-render your component. 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: