Declarative vs Imperative
Concept Check Medium
Question
Which approach describes React's paradigm?
Hint
Think about UI = f(state).
Explanation
React is declarative. You describe what the UI should look like for any given state (via JSX), and React figures out how to update the DOM to match. This is the opposite of imperative vanilla JS where you manually query and update DOM elements.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.