April 2020
Intermediate to advanced
716 pages
18h 55m
English
The DeleteMedia component is added to the Media component and is only visible to the signed-in user who added this specific media. This component is basically a button that, when clicked, opens a Dialog component asking the user to confirm the delete action, as shown in the following screenshot:

This DeleteMedia component takes the media ID and title as props when it is added in the Media component. Its implementation will be similar to the DeleteUser component we discussed in Chapter 4, Adding a React Frontend to Complete MERN. Once the DeleteMedia component has been added, the user will be able to remove ...
Read now
Unlock full access