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"
/>
import bootstrap reagovať
import 'bootstrap/dist/css/bootstrap.css';// Put any other imports below so that CSS from your// components takes precedence over default styles.Copy
Reagovať Bootstrap CSS import
{/* The following line can be included in your src/index.js or App.js file*/}
import 'bootstrap/dist/css/bootstrap.min.css';
ako nainštalovať bootstrap v react
npm install bootstrap --save // Inside of your command line
import 'bootstrap/dist/css/bootstrap.min.css'; // Inside of your index.js