From 1a1186802915c8e27ef4ac8455a098e23c9f93c9 Mon Sep 17 00:00:00 2001 From: Dean Leszman Date: Mon, 20 Mar 2023 15:21:00 +0000 Subject: [PATCH] Fix invalid link to useEffect docs (#5773) Updated link from /api/useEffect to /reference/react/useEffect --- src/content/reference/react/Component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/reference/react/Component.md b/src/content/reference/react/Component.md index 70247af2..22025b89 100644 --- a/src/content/reference/react/Component.md +++ b/src/content/reference/react/Component.md @@ -1711,7 +1711,7 @@ function ChatRoom({ roomId }) { } ``` -This [`useEffect`](/api/useEffect) call is equivalent to the logic in the lifecycle methods above. If your lifecycle methods do multiple unrelated things, [split them into multiple independent Effects.](/learn/removing-effect-dependencies#is-your-effect-doing-several-unrelated-things) Here is a complete example you can play with: +This [`useEffect`](/reference/react/useEffect) call is equivalent to the logic in the lifecycle methods above. If your lifecycle methods do multiple unrelated things, [split them into multiple independent Effects.](/learn/removing-effect-dependencies#is-your-effect-doing-several-unrelated-things) Here is a complete example you can play with: