April 2020
Intermediate to advanced
716 pages
18h 55m
English
The instructor for a course will see a delete option on the Course page when they are logged in and they are viewing an unpublished course. This delete option will be implemented in its own React component called DeleteCourse, and this component will be added to the Course component. The DeleteCourse component is basically a button, which, when clicked, opens a Dialog component asking the user to confirm the delete action, as shown in the following screenshot:

The implementation of the DeleteCourse component is similar to the DeleteUser component, as discussed in Chapter 4, Adding a React Frontend to Complete MERN ...
Read now
Unlock full access