CONTACT US

    Increase your React + Redux Application Performance With the Reselect Library

    A code snippet showing a JSON array with three objects, each listing the name, type (dog or cat), and age of pets: Sammy (dog, 2), Simon (dog, 8), and Milton (cat, 4).

    Why it makes sense to use selectors with your React and Redux applications:

     

    • Selectors can compute derived data, allowing Redux to store the minimal possible state.
    • Selectors are efficient. A selector is not recomputed unless one of its arguments changes.
    • Selectors are composable. They can be used as input to other selectors.

     

    Article link copied

    Close button