Answers for "connect sass file with react file"

CSS
16

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
1

add sass to react

npm install --save-dev sass
or
npm i sass

or

npm install node-sass

or

yarn add node-sass

Convert your .css files to .scss

Import your .scss files in your React components like App.js
Posted by: Guest on December-23-2021

Browse Popular Code Answers by Language