Components and JSX
Talk it through out loud with your AI coach.
The problem
- easy
You're explaining React to someone who knows HTML and JavaScript but has never used it. They ask: what is a component, and what is JSX? Walk them through how you'd build a greeting card that shows a person's name, and how you'd reuse it for three different people.
What a strong answer covers
- What a component is in plain terms.
- What JSX is, what it turns into, and how it differs from HTML.
- Passing data in so one component can show different people.
- Naming and return conventions that trip up beginners.
Common mistake: Describing JSX as HTML that React sends to the browser, rather than JavaScript that describes the UI.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud