Setup React Environment

If you want to Setup React Environment on your machine then Follow below installation instructions to create a new project in reactjs.

  1. First of all Make sure you need to install recent version of Node.js. You must need to have Node >= 6 on your machine.
  2. Install node in your system (you can download from here-https://nodejs.org/en/download/)
  3. Choose your project folder and open cmd command.
  4. Write in command :-  npm install create-react-app
  5. After complete process again write the :- create-react-app your-project-name
  6. Go ahead to the project location using command :- cd your-project-name
  7. Now you can run the react application using command (Start the development server) :-  npm start
  8. If you want to create bundles the app into static files for production :- num run build

If you have npm 5.2.0+ installed, you may use npx instead.

 


Leave a Reply

1 Comment on "Setup React Environment"

avatar
  Subscribe  
newest oldest most voted
Notify of
pankaj
Guest
pankaj

Good one Ranjeet! I like this website content about ReactJS Goodworl!….From Pankaj Chetu

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.