I am using React.
Usually, I am importing the whole css files in index.html within public folder.
But there is a css file that i cannot import globally (this is because web-publisher team worked on different pages and some of their css gets overriden)
Of course the best way to solve this would be to ask web-publisher team to unify their css work.
But i wanted to test if i could resolve this issue on my side (front-end)
How to import css for specific React component?
i tried this
import "../../../public/css/mypage.css/"
=> error: falls outside src directory
also this:
import "/public/css/mypage.css
=> also doesnt work
My solution: should i move this css file into my src folder?
My folder Structure: public folder => css => mypage.css public folder => index.html (where i usually import all css files)
src folder => App.js (i dont import css here)