Actions are an important concept in Redux. In this video, learn what they are, how to use them, and then create your first action.
- [Instructor] In Redux, actions are payloads of information … that send data from your application to your store … and they are the only source of information for the store. … So let us go to Visual code and see them in action. … In here before we start writing anything … let us install some packages. … So right click on Client App, then Open in Terminal. … Here, I'll write, npm install, where we'll install Redux, … then react-Redux and then react-thunk. … We need the react-thunk library to work with promises. … So now that the packages were installed, … let us go inside the Client App folder, then inside source. … And then here we are going to create … a new folder named Actions. … Then inside the Actions … we are going to create our first action file, … so I'll name this file tripActions.JS. … At the top let us import axios, so import axios from axios. … Now in here let us define the constants … that we are going to use this type for sending requests. … So, I'll just write in here export const …
- Setting up the app infrastructure
- Creating data models
- Creating, reading, updating, and deleting API endpoints
- Testing API endpoints using Postman
- Reading data from React
- Adding new data from React
- Handling errors
- Implementing Redux in an existing React app
- Implementing authentication in your React app
Skill Level Intermediate
Managing App Secrets in .NET Corewith Ervis Trupja28m 15s Intermediate
1. Setting Up the App Infrastructure
2. Setting Up Web API
3. Getting Started with React
4. Implementing Redux to an Existing React App
5. Implementing Authentication in Your React App
Where to go next44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.