Skip to content

Commit 1a11868

Browse files
authored
Fix invalid link to useEffect docs (#5773)
Updated link from /api/useEffect to /reference/react/useEffect
1 parent 67721a6 commit 1a11868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/Component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ function ChatRoom({ roomId }) {
17111711
}
17121712
```
17131713
1714-
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:
1714+
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:
17151715
17161716
<Sandpack>
17171717

0 commit comments

Comments
 (0)