Javascript – How to import react-icons module using lazyloading using a variable
I have react component named IconRenderer and I'm passing 2 props named iconName and iconPath. What the IconRenderer do is it imports react-icon module using lazyload by taking the iconPath and iconName The following is my IconRenderer component type Props…