Glossary term
What is selector? Meaning for developers
In Senior Frontend Depth
A function that picks the part of a store a component needs, so other changes do not re-render it.
Learn it properly · Senior Frontend DepthLesson 3: State Management Decisions: Local, Context, Server Cache, Global StoreHow to sort state into kinds (UI, server, URL, form) and pick a tool for each kind, instead of arguing about libraries.In React in Depth
A function that picks one part of a store so a component re-renders only when that part changes.
Learn it properly · React in DepthLesson 6: Context, State Management and Choosing Where State LivesLifting state, context and its re-render cost, reducers, Zustand and Redux Toolkit at a glance, and a simple decision table.