Creating a React project
There are many options and alternatives to creating a new React application project. In this book, we’ll be using Create React App, since it is one of the easiest approaches both for the initial project creation and for its future maintenance. The main advantage of Create React App is that it provides all of the build configuration and scripts for you with a single project dependency. Under the hood, it uses popular tools such as Webpack, Babel, ESLint, and others. Another of its advantages is that there is no lock-in, so you can opt out at any point by performing an “eject” operation. When the project is “ejected,” the single react-scripts
dependency will be replaced by all of the required dependencies, and the build scripts will be generated and persisted in the source directory.
We can bootstrap the application by navigating to the src/main
directory and executing the following command:
npx create-react-app frontend...