Home > Software engineering >  How to apply shared css file between multiple components in React?
How to apply shared css file between multiple components in React?

Time:01-19

I developed a ReactJs app that contain multiple components which every one of them have a seperate css file.

But now i need to clean up and have a shared css file that contains the commun styles for all of the components.

I want to have it done the best way.

I would love to have some suggestions.

CodePudding user response:

How about using Sass and then working with mixins?

CodePudding user response:

For this, also use a import statement in css files, or you can import all css files into index.jsx file

  •  Tags:  
  • Related