I created different CSS files for different components and imported them in their respective components but the components have the same styling. I styled an image for two components differently but after importing the components in app.js the image is styled the same.
It is because when your react files renders as an HTML file all your styles will be pointing your Html so If you have two HTML tags with same id or classname they will get the style of the last defined CSS of the particular classname