Bootstrap css issue when using in react spfx

Sajith Gopalakrishnan Hema 1,056 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';

Microsoft 365 and Office | SharePoint | For business | Windows
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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.