Sign in Go Pro

React Native with Redux

Adding a Second Reducer to Redux - Authentication

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

Applications almost always have more than one reducer, based on what data is in the application. We'll add a new reducer and combine it with the todos reducer in the root Redux store.

Then, we'll make a new connected component, and use it directly in JSX. That will show how you can "gate" access to different parts of your application based on the Redux store.

Summary of Content:

  • Create a new auth reducer
  • Add a username to the store
  • Create a LoginGate which will show the login screen if the username in redux is blank

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