Using the MUI Button component
Our frontend already uses some Material UI components, such as AppBar and Dialog, but we are still using a lot of HTML elements without any styling. First, we will replace HTML button elements with the Material UI Button component.
Execute the following steps to implement the Button component in our New car and Edit car modal forms:
- Import the MUI 
Buttoncomponent into theAddCar.tsxandEditCar.tsxfiles:// AddCar.tsx & EditCar.tsx import Button from '@mui/material/Button'; - Change the buttons to use the 
Buttoncomponent in theAddCarcomponent. We are using'text'buttons, which is the defaultButtontype.If you want to use some other button type, such as
'outlined', you can change it by using thevariantprop (https://mui.com/material-ui/api/button/#Button-prop-variant).The following code shows the
AddCarcomponent’sreturnstatements with the changes...