Dynamic imports
haniotis opened this issue · 2 comments
haniotis commented
Is there a way to use dynamic imports? I'm trying to achieve something like this:
Icon.js component
<Container src={require(`static/icons/${icon}.svg`)} raw />
In use
<Icon icon="twitter" />
The idea is to call a single Icon
component and just reference the icon names as opposed to importing individual assets
Thanks!
polnikale commented
Hello. Are there any updates on this?
jacobmischka commented
Nope! Pull requests welcome!