Is there a way to Separate external style sheets in React | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Is there a way to Separate external style sheets in React

i have 2 external style sheets in my react project and it seems that one of them is overriding the other which is massing up with my styles. question: is there a way we can separate the 2, like import styles like modules in certain components only not the global or a way to deal with it ? Does webpack have a loader to maybe separate the 2.

10th Jul 2018, 6:06 AM
jay
2 Respostas
+ 3
Yes there is. Make an external Javascript, set the stylesheet there and export the module.
10th Jul 2018, 8:18 AM
CalviÕ²
CalviÕ² - avatar
0
CalviÕ² im not following, could u elaborate more?
10th Jul 2018, 5:07 PM
jay