Level 4 · Full-Stack Application Development · Course 4.1 React Fundamentals
Module 31: Introduction to React
Goal: understand what React is and why it's used, set up a React project with Vite, read and write JSX, and build your first components. Across Course 4.1 you'll build a customer-enquiry dashboard.
You'll need: Node.js (LTS), VS Code, Git, and Levels 2 and 3 (especially Modules 19, 23 and 27 to 29).
Lessons
- 1Why React exists15–25 minutes✓
- 2Setting up with Vite15–25 minutes✓
- 3JSX15–25 minutes✓
- 4Components15–25 minutes✓
- 5Project structure and your first screen15–25 minutes✓
🛠️Module practice: the dashboard skeleton
- A Vite React TypeScript project called
enquiries, under Git. Header,Footer,EnquiryCardcomponents and aDashboardpage.- A shared
Enquirytype and sample data. - Responsive CSS. No console errors. Commit.
✅Module check
Explain in a few sentences, in your own words:
What is React, what's a component, and how is JSX different from HTML?
Show a good answer
A good answer mentions: React is a library for building interfaces declaratively: you describe what the
screen should show for the current data and React updates the page. A component is a capitalised function that
returns JSX and can be reused and nested to form a tree. JSX looks like HTML but lives in JavaScript, uses { }
for expressions, className instead of class, closes every tag, returns one outer element, and escapes text
safely.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
