Friday, March 16, 2018

Create React App

Install npm package manager before proceeding forward. Click Here

Step: 1 Creating react app npm package manager
 sudo npm install -g create-react-app  

  create-react-app my-app   

Navigate into my-app directory
 cd my-app  

Start your application
 npm start  

Now your application is served and you will be able to see output on your browser
 http://localhost:3000/  

Note :
If you run into error specified below
 ERROR: npm 5 is not supported yet  
Then you need to install 4.6.1 version globally with following command and follow the step one again.
 sudo npm i -g npm@4.6.1  

Useful links 
A re-introduction to JavaScript 
Reactjs

No comments:

Post a Comment

SQL INTERVIEW QUESTIONS AND ANSWERS