I try to add material-ui to my React project.
after running npm install material-ui -S I try to include an example from the documentation.
<div>
<RaisedButton onClick={this.handleTouchTap} label="Click me" />
<Popover
open={open}
anchorEl={anchorEl}
anchorOrigin={{ horizontal: 'left', vertical: 'bottom' }}
targetOrigin={{ horizontal: 'left', vertical: 'top' }}
onRequestClose={this.handleRequestClose}
>
<Menu>
<MenuItem primaryText="Refresh" />
<MenuItem primaryText="Help & feedback" />
<MenuItem primaryText="Settings" />
<MenuItem primaryText="Sign out" />
</Menu>
</Popover>
</div>
I import desired material-ui component in the following way
import { RaisedButton, Popover, Menu, MenuItem } from 'material-ui';
and this leads to an error with following stack trace.
