[英]I am trying to map mydata from the database but i am getting this error. TypeError: Cannot read property 'map' of undefined
[英]I am currently learning react and I ran into error. TypeError: Cannot read property 'image' of undefined
您的問題描述沒有屬性“圖像”,但我想您可以遵循以下方法:
import image from './yourImageName.png'; // Tell webpack this JS file uses this image
.png 可以替換 as.jpg... 任何你想要的。 這是你的文件擴展名。
您可以將其閱讀為更清晰的概念
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.