A selector is a function that reads (derives) a specific piece of data from the state. Memoization caches a selector's result so it only recomputes when its inputs change — important for performance when selectors do expensive work or to avoid unnecessary re-renders.
Basic selectors — encapsulate state access
= state => state.;
= state => state..;
= state =>
state...( sum + i., );
