April 2020
Intermediate to advanced
716 pages
18h 55m
English
We will render the edit expense form and delete option in the Expenses component view. For each expense record rendered in a Material-UI ExpansionPanel component in this view, we will add form fields in the ExpansionPanelDetails section, with each field pre-populated with the corresponding expense detail value. Users will be able to interact with these form fields to change the values and then click on the Update button to save the changes to the database. We will add these form fields in the view along with the Update button and delete option, as shown in the following code.
mern-expense-tracker/client/expense/Expenses.js:
<ExpansionPanelDetails style={{display: 'block'}}> <div> <TextField label="Title" ...