python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
how can I add a module style, via props other components
codesandbox
I have a component
const UIComponent = ({ className }: Props) => {
return (
<div
className={classNames(styles.component, styles.green, {
className: className <...

Nick
Votes: 0
Answers: 2
How can I rewrite this conditional css using classnames?
In react component, I'm using css module and I got this conditional css that is working fine, but I would like to refactor it using classnames library.
className = { `${active ? styles.activeLabel : s...

Judoboy Alex
Votes: 0
Answers: 1