Exploring a React project directory structure
In a moment, we’ll set up a React application project. There are many ways to create a React application. You could use the Create React App tool to generate a boilerplate application with no build configurations. This doesn’t require you to have complex configuration knowledge.
You can simply focus on the implementation of your application straight up. This is what we’ll be using in this book. And if you are open to exploring Vite (https://vitejs.dev/), it is another next-generation frontend tooling for rapid React application setup.
The other way of creating a React application requires knowledge of Webpack and Babel configurations. Now, without further delay, let’s dive into creating our React project application. You are expected to follow along.
Open your terminal and type the following command:
npx create-react-app frontend
You will get the following output:
Figure...