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
Autoplay

Up next

Previous

About

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

Instructor

Links

Comments

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

>
You need to go PRO to post comments.

Lessons in React Native with Redux