Answers for "how to use scss in react js project"

6

reactjs sass setup

// step 1: install node-sass
// using npm
npm install node-sass --save
// using yarn
yarn add node-sass

// step 2: Convert your .css files to .scss

// step 3: add in your app.js
import './App.scss';
Posted by: Guest on July-26-2021
6

add sass to react

npm install node-sass --save-dev
Posted by: Guest on August-25-2020
1

react get scss

const appBarElement = document.querySelector('.appBar');
if (appBarElement) {
  const style = window.getComputedStyle(appBarElement);
  const position = style.getPropertyValue('position');
  console.log(position);
}
Posted by: Guest on July-16-2021

Code answers related to "how to use scss in react js project"

Code answers related to "Javascript"

Browse Popular Code Answers by Language