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/Chapter07-initial. The complete source code can also be found on GitHub: https://github.com/PacktPublishing/React-Projects-Second-Edition/tree/main/Chapter07.
The initial project consists of a boilerplate application based on Next.js to get you started quickly. This application requires the installation of several dependencies, which you can do by running the following commands:
npm install && npm run dev
This command will install all the dependencies that are needed to run the React application with Next.js, such as react
, next
, and styled-components
. Once the installation process has finished, both the GraphQL server and the React application will be started.
Getting started with the initial React application
Since the React application is created with Next.js...