The Spring Boot application that we created in Chapter 4, Securing and Testing Your Backend, is needed with the modification from the previous chapter (the unsecured backend).
We also need the React app that we used in the previous chapter (carfront).
Install Material-UI by typing the following command into the terminal you are using and starting your app after the installation is finished:
npm install @material-ui/core --save
Let's first change all the buttons to use the Material-UI Button
component. Import the Button
to the AddCar.js
file:
// AddCar.js import Button from '@material-ui/core/Button';
Change the buttons to use the Button
component. In the list page, we are using the primary button and in the modal form, the outline buttons:
render() { return ( <div> <SkyLight hideOnOverlayClicked ref="addDialog"> <h3>New car</h3> <form> <input type="text" placeholder...