G
G
Georgy Pugachev2021-04-21 10:57:01
css
Georgy Pugachev, 2021-04-21 10:57:01

How to use css library in separate modules in React, and not in the whole project?

Hello,

in a React project I use two private CSS libraries, they are installed and added to package.json -> dependencies. Accordingly, they are visible everywhere in the project, and there is no need to write import '';
The problem is that they have the same base classes (like button).
And when the button element is displayed on the screen, the classes of one library overlap others, resulting in a mess.
In some modules of the project I need one library, in others another.
How can this be resolved?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question