I am trying to import css file from another file to react component and apply it but for some reason css does not apply unless i dont put my css inside client/main.css file.
This is proj structure:
What i am trying to do is using styles/MainPage.css from pages/MainPage.jsx
This is how i import css file:
import styles from '../styles/MainPage.css';
Trying to use as:
css does not apply.If i put my css into main.css and without doing any import i can use them as