npm create-react-app windows code example
Example 1: create react app install
RUN IN CMD
npm install -g create-react-app
Example 2: npm create react app
npx create-react-app app-name
cd app-name
npm start
Example 3: yarn react install
There are two ways where you can initiate a REACT app..
1. Using npm : npm init react-app <app_name>
example : npm init react-app sampleApp
2. Using yarn : yarn create react-app <app_name>
example : yarn create react-app sampleApp
Example 4: npm create react app
npx --ignore-existing create-react-app .