V
V
Vann Damm2020-05-02 15:55:33
JavaScript
Vann Damm, 2020-05-02 15:55:33

How to use css modifiers with css modules?

There is a Button component (base), which I expand with the SubmitButton component, passing styles as props, and then I want to use this css module.
Question, how to use two css modules in className? Example:

<a href={'#'} className={Button.someStyle   SubmitButton.someStyle}>
 Отправить
</a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Froggyweb, 2020-05-02
@Froggyweb

Styles in props? Seriously?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question