react npm install code example

Example 1: yarn create react app

// Go into the folder where you wish to create your app
yarn create react-app appname

Example 2: npm install react

npm i react

Example 3: npm start react

npx create-react-app mon-app
cd mon-app
npm start

Example 4: create react app

npx create-react-app  my-app // my-app or Enter Your Project name
cd my-app // To enter your creating app by command cd 
npm start // To start your app in default browser

Example 5: react app using npm

npx create-react-app app-name
cd app-name
npm start