Sign in Go Pro

React Native with Redux

Using Selectors to Reduce Function Duplication

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



Pulling data from the redux store is often extracted into functions called "Selectors". Selectors can be simple or complex - but they are used to reduce code duplication.

Selectors are able to pull data out of the store, because they are passed state as an argument.

Summary of Content:

  • Create the new selectors folder, and add a todos file
  • Create and use a selector to get all the todo items, just the completed items, and just the uncompleted items -Use those selectors in the TodoList and About screens




There are no comments on this lesson, start the conversation below ...


Lessons in React Native with Redux