【发布时间】:2016-11-02 12:32:13
【问题描述】:
在普通的旧 Bootstrap 上使用 react-bootstrap 有什么意义?
我正在经历https://react-bootstrap.github.io/components.html,但我没有看到任何优势。我只能看到它会给项目带来不必要的依赖。
在 React/Redux 项目中使用纯 Bootstrap 有什么困难吗?
**编辑**
从阅读https://react-bootstrap.github.io/introduction.html 推断是react-bootstrap 给我类名的唯一简写?以下是同一页面的示例。
在plain boostrap 我愿意:
var button = React.DOM.button({
className: "btn btn-lg btn-success",
children: "Register"
});
React.render(button, mountNode);
在react-boostrap:
var button = ReactBootstrap.Button({
bsStyle: "success",
bsSize: "large",
children: "Register"
});
React.render(button, mountNode);
所有这些来自react-boostrap 的bsStyle, bsSize, ... 是人们不喜欢Angular 上的东西,它们记得所有那些ng-* 标签...我个人不介意,但如果这是唯一的react-bootstrap 给了我我将使用twitter-bootstrap。还是我错过了什么?
【问题讨论】:
-
见github.com/react-bootstrap/react-bootstrap这只是使用引导程序重新创建的组件,因为您也可以从废料中创建它
-
我已经编辑了@anshu 的问题。谢谢。
标签: twitter-bootstrap react-bootstrap