JSX

The HTML-like syntax used in React code, such as <Button size="lg">Save</Button>, which compiles to JavaScript function calls.

In more detail

JSX lets components be written as markup mixed with JavaScript expressions in curly braces. Files containing JSX with TypeScript use the .tsx extension.

Example

<span className="badge">{count}</span>

Related terms

Taught in

References