From the course: Create a CRM Mobile Application with React Native (2019)
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Add person redux actions - React Native Tutorial
From the course: Create a CRM Mobile Application with React Native (2019)
Add person redux actions
- [Instructor] All right, so let's keep working on our little form here, and how to add it with Redox. So let's go to our actions. So click on the Actions folder. Click on the Index.js, and now we're going to add a few things here in order to be able to add new people inside of our form. So let's go ahead and do that. So the first thing we're going to need to do is do the form update. So we created a form update case here. So we need to create the action for that. So let's go ahead and create that. We're going to crate a function formUpdate, and as you remember, if we go back to our add person, we are leveraging it here. If we go back to here, formUpdate. So we're leveraging it inside of this particular form. So whenever we add new items in our form, we're going to update our state with this formUpdate. So we're going to need this action inside of our actions here. So formUpdate, and the function will need to be passed, a prop, and then a value. Which will return as a type, the…
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.
Contents
-
-
-
-
-
-
Create the new add person form7m 41s
-
Complete functions for add person view6m 54s
-
Add person redux reducers4m 38s
-
Add person redux actions8m 34s
-
Finalize add person and test3m 22s
-
Connect list view to back end7m 11s
-
CRUD: Remove a client7m 48s
-
CRUD: Set up editing9m 1s
-
CRUD: Finalize redux for editing9m 54s
-
-
-