Skip to content

Glossary: React Basics

Boolean attributes (disabled)

Also written: disabled, aria-expanded boolean

Attributes like `disabled` can take a condition directly, such as `disabled={qty <= 1}`, and React adds or removes the attribute to match.

Where the book teaches it

Related terms

Conditional rendering