How to run a function onLoad of an image in NextJS Image component

后端 未结 0 1635
礼貌的吻别
礼貌的吻别 2021-01-20 23:18

I want to show a skeleton while my image is loading. I tried to pass onLoad prop in the new Image component provided by NextJS but the function fires off before the image is lao

相关标签:
回答
  • 消灭零回复
提交回复
热议问题