Hekyのblog

React中使用Bootstrap

安装

npm i bootstrap

20250405更新
使用reaact-bootstrap

npm install react-bootstrap bootstrap

引入

在main.jsx中引入

import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/js/bootstrap.js';

文档

https://v5.bootcss.com/docs/getting-started/introduction/
https://react-bootstrap.netlify.app/

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »