Getting started
The application for this chapter builds upon an initial version, which can be found at https://github.com/PacktPublishing/React-Projects-Second-Edition/tree/main/Chapter06-initial. The complete code for this chapter can be found on GitHub: https://github.com/PacktPublishing/React-Projects-Second-Edition/tree/main/Chapter06.
Start by downloading the initial project from GitHub and move into the root directory for this project, where you must run the npm install
command. Since this project builds upon Create React App, running this command will install react
, react-dom
, and react-scripts
. Also, styled-components
and react-router-dom
will be installed so that they can handle styling and routing for the application. Something else that will be installed is the React Test Library, which you will recognize with the @testing-library/*
prefix. After finishing the installation process, you can execute the npm start
command to run the application so that you can visit the...