From fac3486f96d7dc87a3fcf523fd55f000bd090876 Mon Sep 17 00:00:00 2001 From: qawt <34014324+qawt@users.noreply.github.com> Date: Wed, 13 Jan 2021 12:04:10 -0500 Subject: [PATCH] Update hooks-effect.md "Counter example" has specific meaning. This clarifies to point to the example about counter variable. --- content/docs/hooks-effect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-effect.md b/content/docs/hooks-effect.md index 86b3b6649b0..e3ac5cdd49c 100644 --- a/content/docs/hooks-effect.md +++ b/content/docs/hooks-effect.md @@ -33,7 +33,7 @@ function Example() { } ``` -This snippet is based on the [counter example from the previous page](/docs/hooks-state.html), but we added a new feature to it: we set the document title to a custom message including the number of clicks. +This snippet is based on the ["counter" variable example from the previous page](/docs/hooks-state.html), but we added a new feature to it: we set the document title to a custom message including the number of clicks. Data fetching, setting up a subscription, and manually changing the DOM in React components are all examples of side effects. Whether or not you're used to calling these operations "side effects" (or just "effects"), you've likely performed them in your components before.