Skip to content

Glossary: React Basics

Side effect

Also written: side effects, effect, effects

Work outside React's rendering, such as fetching data, timers, writing to `localStorage` or changing `document.title`. Reactions to clicks go in handlers, and effects are for things that happen because the component is on screen.

Where the book teaches it

Related terms

useEffectPure componentCleanup function