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

Extend the application

From the course: MERN Essential Training (2020)

Start my 1-month free trial

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…

Contents