From 4fff01e641f3d5d1bfe879c73a9543087e73240f Mon Sep 17 00:00:00 2001 From: Misha Moroshko Date: Fri, 26 Oct 2018 15:35:36 -0700 Subject: [PATCH] Add : (#1321) --- content/docs/hooks-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 7405d9bdd..2cac05173 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -105,7 +105,7 @@ By default, effects run after every completed render, but you can choose to fire #### Cleaning up an effect -Often, effects create resources that need to be cleaned up before the component leaves the screen, such as a subscription or timer ID. To do this, the function passed to `useEffect` may return a clean-up function. For example, to create a subscription +Often, effects create resources that need to be cleaned up before the component leaves the screen, such as a subscription or timer ID. To do this, the function passed to `useEffect` may return a clean-up function. For example, to create a subscription: ```js useEffect(() => {