Getting started
The project that we'll create in this chapter builds upon an initial version that you can find on GitHub: https://github.com/PacktPublishing/React-Projects-Second-Edition/tree/main/Chapter05-initial. The complete source code can also be found on GitHub: https://github.com/PacktPublishing/React-Projects-Second-Edition/tree/main/Chapter05.
After downloading the initial application, make sure that you run npm install
from the project's root directory. This project is created using Create React App and installs the react
, react-dom
, react-scripts
, styled-components
, and react-router-dom
packages, which you've already seen in previous chapters. After finishing the installation process, you can run npm start
from the same tab in Terminal and view the project in your browser (http://localhost:3000
).
The initial application for this section is created with Create React App and has routing and data fetching already implemented. When you open the application...