From 63332462bb5afa18ac7a716975b679f4c23cc8a1 Mon Sep 17 00:00:00 2001 From: epsi Date: Mon, 27 Jul 2020 08:55:28 +0530 Subject: [PATCH] Update hooks-overview.md (#3110) * Update hooks-overview.md Changed 'is' -> 'are' * Update content/docs/hooks-overview.md Co-authored-by: Ricky Co-authored-by: Ricky --- content/docs/hooks-overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-overview.md b/content/docs/hooks-overview.md index df958dc6..d299a8b6 100644 --- a/content/docs/hooks-overview.md +++ b/content/docs/hooks-overview.md @@ -229,7 +229,7 @@ function FriendListItem(props) { } ``` -The state of these components is completely independent. Hooks are a way to reuse *stateful logic*, not state itself. In fact, each *call* to a Hook has a completely isolated state -- so you can even use the same custom Hook twice in one component. +The state of each component is completely independent. Hooks are a way to reuse *stateful logic*, not state itself. In fact, each *call* to a Hook has a completely isolated state -- so you can even use the same custom Hook twice in one component. Custom Hooks are more of a convention than a feature. If a function's name starts with "`use`" and it calls other Hooks, we say it is a custom Hook. The `useSomething` naming convention is how our linter plugin is able to find bugs in the code using Hooks.