From the course: MERN Essential Training (2020)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Extend the application
- [Instructor] We now have an application that can add new players and see a list of our players. But what about deleting or updating the current list of players? We won't cover these elements in this course, but you could easily use the same methods we've covered for adding new contacts or listing now that you have a base code with Axios making the request to the APIs. You could simply add a button in the PlayerSingle following the button syntax for (mumbles) and then in the same component, add a call to Axios to delete the current player. You could also leverage the form we created and pull the values into the fields to update a particular player with an Axios put call to the API. A lot of the code needed to do these transactions are written, and I'd challenge to keep going on your own. Also, there are a few additional values we've defined to add to the application, such as is the player a coach, strength value, et…
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
-
-
-
-
-
-
(Locked)
Add a styling library and folder structure6m 9s
-
(Locked)
Add the main page structure6m 21s
-
(Locked)
Add the state and Axios7m 10s
-
(Locked)
Create the listing component5m 21s
-
(Locked)
Create the single item component9m 25s
-
(Locked)
Add the form base structure6m 34s
-
(Locked)
Finalize the form7m 18s
-
(Locked)
Extend the application1m 52s
-
(Locked)
-