【问题标题】:How to use bootstrap style in meteor-react?如何在流星反应中使用引导风格?
【发布时间】:2016-05-26 12:21:27
【问题描述】:

我用命令安装了引导包:

 meteor add twbs:bootstrap

我做了一些示例代码,但它不起作用。 Bootstrap 样式不适用于按钮。

App.jsx

import React from 'react';

export default class App extends React.Component {
  render() {
    return (
      <button class="btn btn-info">Button</button>
    );
  }
}

你能帮帮我吗?谢谢。

【问题讨论】:

    标签: javascript meteor reactjs meteor-react


    【解决方案1】:

    您应该使用 className 属性而不是 class。

    【讨论】:

    • 非常感谢!
    猜你喜欢
    • 2021-11-19
    • 1970-01-01
    • 2017-02-08
    • 1970-01-01
    • 1970-01-01
    • 2017-06-05
    • 2012-07-01
    • 1970-01-01
    • 2018-01-24
    相关资源
    最近更新 更多