React element

A plain, read-only JavaScript object describing one piece of UI: its type, its props and an optional key.

In more detail

Creating an element does not touch the page; it is only a description. The type is either a tag name such as "div" or a component function. React compares new elements with the previous ones to decide what to change in the DOM.

Example

{ type: "h3", props: { children: "Active Users" }, key: "h" }

Related terms

Taught in

References