I use Material-ui@next and material-ui-next@next
material-ui@next load one icon usage:
import AddIcon from 'material-ui-icons/AddIcon';
function AddIconButton(props) {
return (
<AddIcon />
);
}
But I want dynamically load the material-ci-icons icon
For example, I have variable menus
const menus = [
{
Name: 'menu1',
Icons: 'face',
},
{
Name: 'menu2',
Icon: 'extension',
}
].
How to display the icon on the page according to the menus