Module 31: Introduction to React

Lesson 1 of 5 · 15–25 minutes

Why React exists

🏠The everyday picture

In Level 2 you changed the page by hand: find this element, change its text, add that class. That's like repainting a building one brick at a time whenever anything changes. React lets you describe how the whole building should look for the current situation, and it works out which bricks to repaint.

📘What it really is

🖱️Try it

Open a site you use daily, such as an online shop. Draw boxes around the parts you'd make into components: the header, the search bar, one product card (used many times), the filters, the cart button. Name each box.

✅Quick check

What does "declarative" mean in React?

Show the answer

You describe what the screen should look like for the current data, and React makes the page match.

Does React store your app's data permanently?

Show the answer

No. It runs in the browser; storing data needs a backend and database.

← BackModule 31
ProLearners Assist