Answers for "add sass to react typescript"

6

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
4

react typescript scss

// Initialize React app with Typescript
// 	$ npx create-react-app yourProjectName --template typescript

// Go into project folder
//  $ cd yourProjectName

// Install node-sass dependency
//  $ npm i node-sass

// You can now import .scss / .sass files into your React components 
// and use Typescript too. Happy coding!
Posted by: Guest on May-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language