I have created a component once to load Material UI Icons dynamically inside of the component. The icon name comes from component props.
You can see the source here => https://codesandbox.io/s/react-materialicon-component-olntq?file=/src/MaterialIcon.js
It was working very well. I just found out it doesn't anymore.
This is how the component looks like. Also, I recommend have a look at the Codesandbox link I shared above.
