Posted on

Getting Started with React JS

Tools you will need to download and install:

Visual Studio Code: https://code.visualstudio.com/Download

Node JS: https://nodejs.org/en/download/

Open Visual Studio Code to an empty folder in lowercase with no spaces. Then open the “View”->”Explorer” window and the Terminal window. In this example I’m using C:\proj\

Visual Studio Code

To see if you have node installed, at the terminal prompt type:

PS C:\proj> node -v
v16.13.1

And you should see the version number returned.

Next enter

PS C:\proj> npx create-react-app .

to create the basic files and folders, download and install components needed to develop a React app.

To run the application use

PS C:\proj> npm start

To compile the application for deploying to web site use

PS C:\proj> npm run build