Answers for "class not working react"

0

class not working react

// In react, you need to use className instead of class.
// E.g.
<div className="myClass" />
  
// NOTE: When using web components, use class NOT className
// E.g.
<my-component class="my-class"></my-component>
Posted by: Guest on July-27-2021

Code answers related to "class not working react"

Browse Popular Code Answers by Language