Home

Build Your First Dashboard with React

You built a dashboard by hand, re-picking your data file after every refresh and re-running the filter yourself. React—the tool behind much of the modern web—lets the page update itself when something changes, and a real project setup loads your data automatically. In this tutorial you’ll create your first React app on Windows and rebuild your heart-attack dashboard so it reacts to you.

You’ll use two programs: PowerShell to create and run the app, and VS Code to edit it.

Key Concepts

What You’ll Need

Step 1: Install Node.js

Node.js lets your computer build and run React apps.

Step 2: Open PowerShell

PowerShell is a window where you type commands instead of clicking. You’ll only need a few.

Step 3: Change folder via command line

Before creating the app, you’ll move into your Documents folder—the same folder you open in File Explorer (Windows) or Finder (Mac). This is where your project will be saved, so it’s easy to find later.

The command below is cd, short for “change directory.” It simply moves you into a folder, the way double-clicking a folder opens it.

You won’t see much happen—that’s normal. The text to the left of the blinking cursor changes to show you’re now inside Documents.

Step 4: Create Your React App

Type this command and press Enter:

npm create vite@latest heart-react -- --template react

This creates a new folder called heart-react inside Documents, with your project inside it.

Step 5: Install and Start the App

Type these commands one at a time, pressing Enter after each and waiting for it to finish:

cd heart-react
npm install
npm run dev

Leave this PowerShell window open—it’s your app’s engine. Don’t type anything else here.

Step 6: Add the Data File

Step 7: Open the Project in VS Code

Step 8: Build the Dashboard with ChatGPT

Note: Sometimes, the pasted code starts or ends with a line of three backticks (```), delete those lines.

Step 9: Add a Filter with useState

That instant update is what React is all about: you change a value, React updates the screen for you.

Step 10: Save Your Work with GitHub Desktop

Next Steps

Troubleshooting

Workflow Overview


Created by Steven Ge on June 20, 2026.