Skip to content

Glossary: React Basics

className / htmlFor

Also written: className, htmlFor

The JSX spellings of the HTML attributes `class` and `for`, used because those two words are JavaScript keywords. Most other attributes are camelCase, such as `tabIndex`.

Where the book teaches it

Related terms

JSX