Prerequisites

Before we get started on the super awesome react course, you need to make sure you have 2 main things, listed below:

Creating our React app

There are 2 main ways to create a new react app:

  1. Using create-react-app
  2. Using Vite

Using create-react-app

  1. With npm installed, type into a vscode terminal Npx create-react-app hello-world

  2. cd into your newly created folder

  3. Once in, open it up in VS Code and run npm start

    Untitled

Using Vite

  1. With npm installed, type the following into a vscode terminal: Npm create vite@latest

  2. Now you’ll be prompted to fill in some information in the terminal:

    Untitled

Untitled

  1. Here select Javascript, since that will be the focus of this course, once again using the arrow keys and hit enter at Javascript.

Untitled