I'm working on a React project built with create-react-app
. I have a file called common.scss
where I keep a list of variables, for example:
$blue: 'blue';
$red: 'red';
The SCSS files are pre-processed with node-sass-chokidar
.
I would like to be able to import these variables into my jsx files, but I could not find a clear way of doing this without ejecting. Can you show me a way to do this without eject?
Thanks.