Sunday, 7 July 2019

React JS Installation

React JS Installation
For react we need two things installed
  • Node JS-Go to the official website for node and download the latest one<a href="https://nodejs.org/en/">https://nodejs.org/en/</a>
  • Text Editor-As per yout choice ie Visual Studio Code<a href="https://code.visualstudio.com/">https://code.visualstudio.com</a>
Install create-react-app using npm command
  • npm install create-react-app -g
This command is telling to npm that intall create-react-app package globally on your machine.
Command to check the version
  • create-react-app -version
How to create react app?
  • npx create-react-app myApp-app
Description:Creates new react app.
  • cd myApp-app
  • npm start
Description:To start react app.
Browse Below URL
  • http://localhost:3000/
Installation of some more libraries which will be useful when we start real time websites development.
REACT-ICONS
Include popular icons in your React projects easly with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.
This will be used to render some designed icons from centralized place.But to use them, we need to install this library.
REACT-ROUTER-DOM
This library mainly provides the routing strategies which are very useful in our web development.
Install this library using below command for your project
  • npm install react-router-dom

No comments:

Post a Comment