using sass with react code example Example 1: scss react npm install node-sass --save Example 2: React Sass $myColor: red; h1 { color: $myColor; }