using Sass with create-react-app code example
Example 1: add sass to react
npm install node-sass --save-dev
Example 2: scss in react app
$ npm install node-sass --save$ # or$ yarn add node-sassCopy
npm install node-sass --save-dev
$ npm install node-sass --save$ # or$ yarn add node-sassCopy