React Environment Setup

  • Go to the NodeJS official website to download and install NodeJS locally (download NodeJS).
  • Similarly download and install npm using the official website, if not installed.
  • Once installed, open up an editor like Visual Studio Code.
  • Use the terminal of the editor to create a new React app.

Create a New React App – npm create-react-app

The Create React App functionality allows us to create a development environment and install all necessary libraries for creating single-page applications using React. It allows us to use the latest JavaScript features. 

Prerequisites:

To create a new React app, you need to have the following installed on your system:

  • Node ( version >= 14.0.0 )
  • npm ( version >= 5.6 )

Similar Reads

React Environment Setup

Go to the NodeJS official website to download and install NodeJS locally (download NodeJS). Similarly download and install npm using the official website, if not installed. Once installed, open up an editor like Visual Studio Code. Use the terminal of the editor to create a new React app....

Create a New React App

If you have installed an npm version greater than or equal to 5.6, you can use the following npx command to create a new React app:...

React Project Structure

src: This folder contain all the necessary source code of the project.public: This folder stores the HTML files and the assests.node_modules: Dependencies of the project.package.json: Used dependencies and scripts information.README.md: Any additional information for documentation....