Reducers are important in Redux. In this video, learn what they are, how to use them, and then create your first reducer.
- [Instructor] We learned that we define actions … to represent the fact, … or the what happens, … and then we user reducers to update this state … according to these actions. … To bring them together, we use store. … But what else can we do using the store? … Now we know that the store will hold the application state, … but if you want to access the application state … you can use the getState method, … and if you want to update it, … you can use the dispatch method, … which takes as a parameter, an action. … And if you want to listen for different store changes, … you can subscribe to it … by using the subscribe method. … Now it's important to mention that … we only have a single store in a Redux application. … So let's now go to visual code and see this in action. … In here I'll go to Explorer, … then ClientApp, then source, and then inside source, … I'll create a new folder named store. … Now I'm not naming it stores … because we only have one store in a redux app. … Inside this store folder, …
- 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.