Find: class Instead of className
Find the Mistake Easy
Question
What is wrong with this JSX?
Code
return <div class="container">Hello</div>;
Hint
JSX is JavaScript — class is a reserved word.
Explanation
JSX uses className instead of class because class is a reserved keyword in JavaScript. The fix is: <div className="container">Hello</div>. Using class will be ignored or cause a warning.
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.