T
T
Theory Theory2022-01-28 12:39:20
React
Theory Theory, 2022-01-28 12:39:20

How to make normal css modules in react?

className={style.block} this approach is not very convenient. Is there a library that allows you to give classes as usual className="block" but still guarantee uniqueness?

For example, in vue.js we just write the scoped attribute and that's it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Suntsev, 2022-01-28
@Narbek

There is such a
classname
. I advise you to look in the direction of style components .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question