The add functionality

The next step is to create an add functionality for the frontend. We will implement that using the React Skylight modal component. We already went through the usage of React Skylight in Chapter 8, Useful Third-Party React Components for React. We will add the New Car button to the user interface, which opens the modal form when it is pressed. The modal form contains all the fields that are required to save the car as well as the button for saving and canceling.

Stop the development server by pressing Ctrl + C in the terminal, and type the following command to install React Skylight. After installation, restart the app:

npm install react-skylight --save

The following steps show how to create add functionality using the ...

Get Hands-On Full Stack Development with Spring Boot 2.0 and React now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.