JSX

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.

JSX — Structure map

Clickable & Draggable!

JSX — Related pages: