← React Beginner Questions - Set 11 Q104

What is the difference between an inline style and CSS classes in React?

React Beginner Questions - Set 11

Example

<div style={{ padding: 16, color: '#1565c0' }} />   // inline object
<div className="card card--blue" />                   // CSS class

What to notice

← Back to the question list