Answers for "adding more than one class react"

1

How to add multiple classes to a ReactJS Component

var liClasses = classNames({
      'main-class': true,
      'activeClass': self.state.focused === index
    });

    return (<li className={liClasses}>{data.name}</li>);
Posted by: Guest on July-06-2020
0

adding more than one class react

import style from '/css/style.css';

<div className={style.style1+ ' ' + style.style2} />
Posted by: Guest on October-27-2021

Code answers related to "adding more than one class react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language