From 47e1ce5d4212408c1ba4c8c467d2dd7b93bcc729 Mon Sep 17 00:00:00 2001 From: Binoy Barman <55360337+binoy638@users.noreply.github.com> Date: Tue, 9 Aug 2022 17:16:50 +0530 Subject: [PATCH] Update index.md (#4886) --- beta/src/pages/learn/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/pages/learn/index.md b/beta/src/pages/learn/index.md index c9f8efbd..8fcb7130 100644 --- a/beta/src/pages/learn/index.md +++ b/beta/src/pages/learn/index.md @@ -384,7 +384,7 @@ Notice how each button "remembers" its own `count` state and doesn't affect othe Functions starting with `use` are called *Hooks*. `useState` is a built-in Hook provided by React. You can find other built-in Hooks in the [React API reference](/apis). You can also write your own Hooks by combining the existing ones. -Hooks are more restrictive than regular functions. You can only call Hooks *at the top level* of your components (or other Hooks). If you want to `useState` in a condition or a loop, extract a new component and put it there. +Hooks are more restrictive than regular functions. You can only call Hooks *at the top level* of your components (or other Hooks). If you want to use `useState` in a condition or a loop, extract a new component and put it there. ## Sharing data between components {/*sharing-data-between-components*/}