pridajte bootstrap reagovať
//1.run following commnad in cmd:
npm install bootstrap --save
//you can now use bootstrap component. example:
import { Button } from 'react-bootstrap';
//2.or add this to index.js:
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l"
crossorigin="anonymous"
/>
reagovať import bootstrap css
{/* The following line can be included in your src/index.js or App.js file*/}
import 'bootstrap/dist/css/bootstrap.min.css';
nainštalovať boostrap reagovať
npm install react-bootstrap bootstrap
ako nainštalovať bootstrap v react
import 'bootstrap/dist/css/bootstrap.css';// Put any other imports below so that CSS from your// components takes precedence over default styles.Copy
nainštalovať reagovať bootstrap
# with npm
npm install react-bootstrap bootstrap
#with yarn
yarn add react-bootstrap bootstrap
instalar bootstrap sk reagovať
npm install bootstrap