Skip to content

Glossary: React Basics

Self-closing tag

Also written: self-closing

A tag with no content that closes itself with `/>`. In JSX every tag must be closed, so `<img>` becomes `<img />`.

Where the book teaches it

Related terms

JSX