erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12.01k stars 2.5k forks source link

How to style react-bootstrap components #1317

Closed kgupta15 closed 7 years ago

kgupta15 commented 7 years ago

How do I style the react-bootstrap components ? I tried using bsStyle and className for the component and putting the styling code in scss file, but the style isnt loading. js

<Navbar fixedTop bsStyle="styles.navbar">
  <Navbar.Header className="styles.header">
    <Navbar.Brand>
      <IndexLink to="/" activeStyle={{color: '#33e0ff'}}>
        <div className={styles.brand}/>
        <span>{config.app.title}</span>
      </IndexLink>
    </Navbar.Brand>
    <Navbar.Toggle/>
  </Navbar.Header>
</Navbar>

scss

.app {
    .navbar {
        height: 50px;
    }
    .header {
        background: #eeffcc;
    }
}