Bootstrap css issue when using in react spfx

Sajith Gopalakrishnan Hema 1,036 Reputation points
2021-01-31T13:39:51.62+00:00

When we use any bootstrap related (Carousel etc) with react in spfx. The design collapses.

"react-bootstrap": "^1.4.0",
import "bootstrap/dist/css/bootstrap.min.css";
import Carousel from 'react-bootstrap/Carousel';

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,926 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Baker Kong-MSFT 3,801 Reputation points
    2021-02-01T04:44:12.24+00:00

    Hi @Sajith Gopalakrishnan Hema ,

    Please take a reference of below demo:

    Test result:

    62309-test.gif

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.