compile react with sass code example Example 1: node sass version react yarn add node-sass@4.14.1 Example 2: add sass to react npm install node-sass --save-dev