Lesson 1 - Introduction

1.4 - Using Npm Commands To Run A React Project

To run your React application, use the following command:

npm start

This command starts a dynamic development server and opens your application in the default browser. The server watches for any changes in the source files and automatically reloads the page, providing a smooth development experience.

When you're done with the development and your application is ready to launch, execute the following command:

npm run build

This will create a folder build containing all the optimized static files ready for deployment.