JSX —
A syntax extension to JavaScript.
const element = <h1>Hello, world!</h1>;
-
May remind you of a template language, but it comes with the full power of JavaScript.
-
Produces React “elements”.
-
Use it with React to describe what the UI should look like.