Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

class and id in react

To specify a CSS class, use the **className** attribute. This applies to all regular DOM and SVG elements like <div>, <a>, and others.

<div className="Button" />
 
PREVIOUS NEXT
Tagged: #class #id #react
ADD COMMENT
Topic
Name
5+5 =