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 )