CodeZettaInterview Hub

React · JSX · Fresh / Intern · Concept

What is JSX?

Short Interview Answer

Syntactic sugar that compiles to React.createElement / jsx() calls describing the element tree.

Detailed Explanation

JSX is not HTML—attribute names differ (className), and expressions wrap in {}. Must return a single root or fragment.

Did you know this answer?