install react js app code example

Example 1: react create app

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

Example 2: install react js

npx create-react-app <appname>  //  eg:  npx create-react-app blog
cd <appname>  // cd blog
npm start  //runs on localhost:3000

Example 3: new create react app

npx create-react-app my-app
cd my-app
npm start
//Note:npx on the first line is not a typo — 
//it’s a package runner tool that comes with npm 5.2+.

Example 4: create new react app

Create new react app

Example 5: 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 6: react app using npm

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