Answer the question
In order to leave comments, you need to log in
How to write this with CSS Modules?
Hello. There is a component whose classes are written like this (sorry for the picture):
Please tell me how to register the same classes, but using CSS modules. Thanks
Answer the question
In order to leave comments, you need to log in
className={`${styles.modal__wrapper} && ${props.isOpened ? styles.open : styles.close}` }
I would try something like. Not sure if this will work, of course, but in theory it should.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question