Using CRA to create a new React application is as simple as executing the following command:
npx create-react-app my-app
Or you can useĀ yarn:
yarn create react-app my-app
Once done, the project will be ready to use in the chosen folder. CRA uses yarn by default, but you can also use npm if you prefer. After having created the file and folder structure, CRA will automatically start the installation of the dependencies.
You can find an example project in the assets of this book, under Chapter11/09-create-react-app-example.