← React Beginner Questions - Set 7 Q61

What is JSX?

React Beginner Questions - Set 7

Example

const title = <h2 className="t">Hello</h2>;

// Babel/SWC output: a plain object, not a DOM node
const compiled = jsx('h2', { className: 't', children: 'Hello' });

What to notice

← Back to the question list