Setup React-Bootstrap in Vite project
16 March 2022 (Updated 2 August 2024)
On this page
Install NPM package
Include stylesheets
Rename your index.css
file to index.scss
:
mv src/index.css src/index.scss
Include the Bootstrap Sass entry file from the NPM package by including the following in your src/index.scss
file:
Make sure your root Sass file is imported in your app in src/main.tsx
.
Configure Vite
Sources
Tagged:
React tooling
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment