Problem Statement
How does JSX get compiled to JavaScript under the hood?
Explanation
JSX isn’t understood by browsers directly. The build tool (Babel) transpiles JSX into `React.createElement()` calls that produce virtual DOM objects. This keeps code readable while still working with standard JavaScript.
Code Solution
SolutionRead Only
<div>Hello</div> ➜ React.createElement('div', null, 'Hello')Practice Sets
This question appears in the following practice sets: