Skip to content

Glossary: React Basics

Dependency array

Also written: deps, dependencies

The array passed as `useEffect`'s second argument. It lists the values the effect uses, and the effect runs again only when one of them changes. `[]` means run once after the first render.

Where the book teaches it

Related terms

useEffectCleanup function