I want to create component with name "Menu" and import "Menu" from MaterialUI, something like this:
import React, {Component} from 'react';
import Menu from '@material-ui/core/Menu';
class Menu extends Component {
render() {
return (
<div>
<Menu>
...
</Menu>
</div>
);
}
}
export default Menu;
How can I do this? I tried to do with import { Menu as OtherName} etc but all time I have errors.
Thanks for advices.