← React Beginner Questions - Set 9 Q81

What is JSX and why do we use it in React?

React Beginner Questions - Set 9

Example

// Why: expressions inline, no string templates
const user = { name: 'Ana' };
const el = <p title={`${user.name}'s profile`}>Hello {user.name.toUpperCase()}</p>;

What to notice

← Back to the question list