Building React for Hosting
Let's say your React project has reached the point where you are ready to deploy it to hosting. To do this, you need to prepare a project build.
To create a build, while in the project folder, execute the following command:
npm run build
After this, a folder named build
will appear in the root of your project,
containing the website build.
We will deploy the contents of this folder
to hosting
in the next lessons.
Create a build of your project.