From the course: Create a CRM Mobile Application with React Native
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Testing and debugging Redux for editing - React Native Tutorial
From the course: Create a CRM Mobile Application with React Native
Testing and debugging Redux for editing
- [Instructor] Okay, so now what we're going to do is add a few actions and a reducer to be able to remove ailments in our applications. We're also going to fix and debug a few things. So the first thing I'm going to do right away and get it out of the way is I made a little typo here. I don't know if you caught that. If you don't have this error, it means that you've done the right thing and I didn't. So basically, what I need to do first is fix this, and it should get rid of that PropType error. And then the reason why we have an error when we type elements in this form is that we don't have the right action inside of our actions to the form update. We have the reducer, well, we don't have the action, so we need to add that. All right, so what we're going to do first is go into the actions and start by adding this one here. So I'm going to do an export cons and do formUpdate, and then what is the prop and the value. We're basically passing those two parameters. Then we're going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.