React JS - Installation

 

  • Download and Install Node JS :
    https://nodejs.org/en/download

  • Open Command Prompt

  • Install React :
    npm install react

    Note :
    If React is already installed, then you can check React Version :
    npm view react version

  • Download New React Project :
    npx create-react-app App-Name

    Note :
    App-Name is your project folder name

  • Open VS Code and Open Project Folder.

  • Go to Terminal > New Terminal :
    npm start

    Note :
    The above command is used to compile React Application.
INTERVIEW QUESTION
  • What is alternate of npm command?
    Answer : 
    yard

Comments