JSX
Definition
A syntax extension for JavaScript that looks like HTML and is used to describe UI in React. JSX is compiled to `React.createElement()` calls. It supports JavaScript expressions inside curly braces `{}`.
Code Example
Jsx
Learn More
Related Terms
Component
A reusable, self-contained piece of UI in React. Components accept inputs (props) and return JSX describing what should appear on screen. Can be functions (recommended) or classes.
Virtual DOMAn in-memory representation of the real DOM that React uses to optimize updates. When state changes, React creates a new virtual DOM tree, diffs it against the previous one, and applies only the minimum necessary changes to the real DOM.