I'm having trouble incorporating styles into my React component. I'd prefer to use SCSS instead of either using the withStyle
function or importing a plain CSS file into a JS file.
For instance, I would like to import my SCSS file into ButtonComponent.js
like so:
import './buttonStyle.scss'
- Place my theme settings in a SCSS file named
theme.scss
- Import
theme.scss
into my SCSS files - Utilize the SCSS classes in the
className
of the components.
What is the best way to achieve this?