Skip to content

Glossary: React Beyond the Basics

selector

Also written: selectors

A function passed to a Zustand store hook that picks the part of the state a component needs. The component re-renders only when that selected value changes.

Where the book teaches it

Related terms

Zustandstore