Advantages of using react-bootstrap over bootstrap

前端 未结 4 1003
半阙折子戏
半阙折子戏 2021-01-31 15:06

What\'s the point in using react-bootstrap over plain old Bootstrap?

I was going through https://react-bootstrap.github.io/components.html and I don\'t see any advantag

4条回答
  •  终归单人心
    2021-01-31 15:40

    It's really a matter of what front-end framework you plan to use. If you are going to use Angular, Ember, Knockout, or plain old jQuery then traditional Bootstrap may be sufficient for you. With React though there is a fundamental difference in how the JavaScript application code interacts with the DOM that makes the jQuery approach from Bootstrap very difficult to work with since React primarily works with a Virtual DOM. It iss true that using React-Bootstrap will reduce the amount of boilerplate code that you would need to do simple tasks like Buttons or Form elements, though that's not the primary gain.

提交回复
热议问题