Open AnderUstarroz opened 3 years ago
Doesn't seems to work with dynamically generated icons (icons fetched from some API) For instance the following component would display icons dynamically:
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' const Icon = ({group, icon}) => { return <FontAwesomeIcon icon={[group, icon]} /> } export default Icon
Is there a way to achieve this without having to import statically the icons in advance?
import { faCoffee, faAddressBook, faAirFreshener, faAmbulance, faAtom, faBus, faCoins, faDice, } from '@fortawesome/free-solid-svg-icons'
Doesn't seems to work with dynamically generated icons (icons fetched from some API) For instance the following component would display icons dynamically:
Is there a way to achieve this without having to import statically the icons in advance?