Skip to content

Commit d9e429d

Browse files
committed
Edit
1 parent d717b51 commit d9e429d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/rules/components-and-hooks-must-be-pure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Try building a component that displays the time in real-time in our [challenge](
4343
4444
## Side effects must run outside of render {/*side-effects-must-run-outside-of-render*/}
4545
46-
Side effects should not run in render, as React can render components multiple times to create the best possible user experience.
46+
[Side effects](http://localhost:3000/learn/keeping-components-pure#side-effects-unintended-consequences) should not run in render, as React can render components multiple times to create the best possible user experience.
4747
4848
While render must be kept pure, side effects are necessary at some point in order for your app to do anything interesting, like showing something on the screen! The key point of this rule is that side effects should not run in render, as React can render components multiple times. In most cases, you'll use [event handlers](learn/responding-to-events) to handle side effects.
4949

0 commit comments

Comments
 (0)