APIs

className

Sets a built-in element’s CSS class string. Matching CSS rules are needed for visible styling.

Formal Syntax & Structure

react syntaxreact
className

Working Example

Example Snippetreact
<p className="notice">Ready</p>
React Reference