Concepts

Declarative user interface

Describe the UI in terms of current inputs and state. React can then reconcile changes to the UI description with the rendered interface. This is a programming model, not a function or command.

Formal Syntax & Structure

react syntaxreact
Declarative user interface

Working Example

Example Snippetreact
export default function Availability() {  const available = true;  return <p>{available ? "Open" : "Closed"}</p>;}
React Reference