K
K
Keppp2019-10-17 21:55:26
Bootstrap
Keppp, 2019-10-17 21:55:26

Why are react-bootstrap styles not loading?

import { Button } from 'react-bootstrap';

const Fild = ({ users, showCell }) => (
  <Fragment>
    <Button variant="primary">Primary</Button>
...

The component is displayed, there are no errors in the console, but it looks like a regular button without styles. 5da8b8ebf3d2b762164676.png.Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2019-10-18
@sharomet

You have not loaded css or scss styles
in App.js
import '...../scss/bootstrap.scss';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question