Created
March 29, 2022 04:42
-
-
Save vigneshv01-ship-it/ecccd87169581474134525e071181b45 to your computer and use it in GitHub Desktop.
React Code snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Terminal 1 | |
# Create React App with TS | |
npx create-react-app my-app --template typescript | |
# Install Bootstrap | |
npm install react-bootstrap [email protected] | |
npm start | |
## Terminal 2 | |
# Install SASS | |
npm install react-bootstrap [email protected] | |
# Create sass and css directories | |
# Move css files to sass folder and rename to .scss files | |
# Fix path in App.tsx and index.tsx accordingly (say, import './sass/App.scss';) | |
# Add the below in package.json under scripts | |
# "sass" : "sass src/Sass:src/Css --watch --no-source-map" | |
npm run sass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment