Browse Source

Fix invalid link to useEffect docs (#5773)

Updated link from /api/useEffect to /reference/react/useEffect
main
Dean Leszman 2 years ago
committed by GitHub
parent
commit
1a11868029
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/content/reference/react/Component.md

2
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:
<Sandpack> <Sandpack>

Loading…
Cancel
Save