npm install -g create-react-app
(this will install react globally in your pc).create-react-app -version
(this is to check is react installed successfully or not).create-react-app <projectname>
(this will create your first react app in the specified folder).npm start
to run your project.npm run build
: Bundles the app into static files for production.npm test
: Starts the test runner.npm run eject
: Removes this tool and copies build dependencies, configuration files and scripts into the app directory. If you do this, you can’t go back!