You have created the read and create views, but sometimes you might need to modify your data, for that. In this video, learn how to update your data from a React application.
(electronic music) … - [Instructor] In the challenge, I asked you … to implement the Update feature, … so let us walk through my solution together. … For that, let's go to Visual Code. … Now, since the Create and the Update components … are almost similar, we are going to copy … the existing Create component. … So, inside Source folder: Components, Trip. … In here: Ctrl + C, Ctrl + V. … Let us change the name of the file to Update. … And then go inside the Update file. … Let's change the class name in here to Update. … And that's it. … So the first thing that we need to do in here … is that we need to get the details of the trip … that we want to update, and for that, … we're going to use one of the lifecycle methods. … So, just after constructor, write: … componentDidMount, … and then, inside here, the first thing that we need to do … is that we need to get the ID, so for that, const ID. … This.props.match.params. … Now for us to be able to get the ID in here, … we need to define it in our route. …
- 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.