'Module '"react-icon-cloud"' has no exported member 'renderImg'
I used to use renderImg in react-icon-cloud version 3.0.3 in next js, but now I can not import renderImg in version 4.0.0. There is an error:
Module '"react-icon-cloud"' has no exported member 'renderImg'.ts(2305)
here is a code where I use renderImg:
const ImgATag = data.map((item: any) =>
renderImg({
imgProps: {
src: imgLink + item.logo,
alt: item.title,
width: 700,
height: 700,
},
aProps: {
href: `#${item.title}`,
},
})
);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
