Instagram
youtube
Facebook
Twitter

Installation

React JS Installation

  • To create and install react js you will need node js installed in your system.
  • To check node js installation open the command prompt and type.
node --version
  • The version of node should be greater than 16.0.
  • If you have node installed run the following command to install react.
npm install react

 

Create your first React Project

  • Open a terminal.
  • Create a new project folder using
mkdir ReactProject
cd ReactProject
  • Install react using create-react-app.
npx create-react-app my-app
  • This will first ask for your permission to temprarilly install associated packages. Once completed, change directories into your new app.
cd my-app
  • Start your new React app using.
npm start