October 2019
Intermediate to advanced
426 pages
11h 49m
English
If we want to memoize selectors, and the selector only depends on the state (not props), we can declare the selector outside of the component, as follows:
import { createSelector } from 'reselect'
const todosSelector = state => state.todosconst filterSelector = state => state.filter
Read now
Unlock full access