Sign in Go Pro

React Native with Redux

Form Validation with Redux

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

Handling errors from the HTTP server is good - but catching the error before it goes to the server is better. Form validation can be done in local state or in Redux, so we'll show both methods.

In your own application, you will have to decide how much of your application should be in local state, and how much should be in Redux.

Links

Summary of Content:

  • Check for a blank task, and set a validation error in local state
  • Use the local state to display an error box on the form
  • Think about when to use local state, and when to use Redux
  • Convert the local state to Redux

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