Skip to content

Glossary: React Basics

Inline style

Also written: style prop

The `style` prop, which takes an object with camelCase properties, as in `style={{ marginTop: 8 }}`. A plain number means pixels, and inline styles suit values worked out at run time.

Where the book teaches it

Related terms

CSS ModuleCSS custom property