How to add Sass to React App (no-eject)

Use Sass in your React app with react-scripts@2.0.0

Marina Ferreira
Code Sketch

--

As from react-scripts@2.0.0 the tedious task of ejecting the config files and adding a loader is no longer needed.

Now it's as simple as installing node-sass, and renaming the style files:

🌹 npm install node-sass --save

Update src/App.css and index.css to src/App.sass and index.sass

🌹 yarn start

Official documentation at Create React Docs.

--

--