Facebook PixelReact Setup | React JS Tutorial | CodeWithHarry

React Setup

Node.js

You can download it from: https://nodejs.org/en/

Creating our first React app

Open your terminal in the directory you would like to create your application. Run this command to create a React application named my-react-app:

npx create-react-app my-react-app

OR, you can directly make your application without specifying a name, like this:

npx create-react-app .

In this case, all files will be kept in the current directory.

Note: When choosing a folder name, make sure there are no spaces or capital letters because of npm naming restrictions.

Once the base application is created, if a folder is specified, you just have to enter the folder. You can use this command to enter:

cd directory-name

Then just start up the application with this command:

npm start

and you are good to go!