In React, what does JSX actually compile down to at build time?
- aCalls to
React.createElement(type, props, ...children)building a plain JS object tree✓ - bA template string parsed by the browser at page-load time
- cA set of
document.createElementDOM calls executed during compilation - dA JSON configuration file describing the component tree
Explanation:JSX is syntactic sugar; a build tool (the JSX transform) turns
<h1 className="title">Hi</h1> into React.createElement('h1', {className: 'title'}, 'Hi'), a plain JS call that builds an object tree describing the UI. Option (b) confuses it with a runtime template engine, (c) confuses build-time createElement calls with actual DOM manipulation, and (d) isn't a JSON artifact at all — it's JavaScript.