React-Bootstrap - importing modules
react-bootstrap doesn't have a default export, so the default import syntax (import ReactBootstrap from 'react-bootstrap'
) cannot be used in this case. You can do the following though:
import * as ReactBootstrap from 'react-bootstrap';
<ReactBootstrap.Button bsStyle="success" bsSize="small">
Something
</ReactBootstrap.Button>
The answer provided by Nick is not recommended as it will bloat your component.
Rather use the named imports however in a better syntax.
import { Button, ButtonGroup, DropdownButton, MenuItem } from 'react-bootstrap';
This way you know what you are importing and keep the component size to a minimum