JSX runtime

The small module that compiled JSX calls, so each tag becomes a jsx function call imported automatically from react/jsx-runtime.

In more detail

Before React 17, JSX compiled to React.createElement, so every file had to import React. The automatic runtime makes the compiler add the import itself and passes the key as a separate third argument instead of inside props. You rarely call jsx yourself; the course does so only to see what compiled JSX produces.

Example

jsx("h3", { children: title }, "h")

Related terms

Taught in

References