What is the role of JSX transpilation?
JSX transpilation refers to the process of converting JSX syntax (JavaScript XML) into
regular JavaScript. Since browsers don't understand JSX directly, tools like Babel transpile
JSX into valid JavaScript that browsers can execute.
Example:
const element = <h1>Hello, world!</h1>;
Babel transpiles the JSX into:
const element = React.createElement('h1', null, 'Hello, world!');