Question 6 of 10Pro Only
What is a selector in Redux and how does Reselect optimize performance? Show an example of a memoized selector.
Sample answer preview
A selector is a function that extracts a specific part of Redux state. Memoized selectors avoid unnecessary recalculations and improve performance. Simple selectors are functions that take state and return a portion of it.
selectorcreateSelectorReselectmemoizationderived stateperformance