I'm using React-Bootstrap to render a button group as an example, but it's refusing to render, and is instead telling me "ButtonGroup is undefined". I've installed the module via NPM and have imported it using ES6 (translated by babel). I'm exporting my components, to then eventually be rendered in my app as children.
import React, { Component, PropTypes } from 'react';
import Bootstrap from 'react-bootstrap';
export default class NavBar extends Component {
render(){
return(
<Bootstrap.ButtonGroup>
<Bootstrap.Button>1</Bootstrap.Button>
<Bootstrap.Button>2</Bootstrap.Button>
<Bootstrap.DropdownButton title="Dropdown" id="bg-nested-dropdown">
<Bootstrap.MenuItem eventKey="1">Dropdown link</Bootstrap.MenuItem>
<Bootstrap.MenuItem eventKey="2">Dropdown link</Bootstrap.MenuItem>
</Bootstrap.DropdownButton>
</Bootstrap.ButtonGroup>
);
}
}