Closed yshwanth closed 4 years ago
@yashwanthambati - just ran the finished tutorial, and I am able to see the img src on poposdetails. Make sure to check the following:
public/images/
where public
is at the same hierarchy as src
?POPOSDetails.js
, your img
tag looks like the following:
<img src={`${process.env.PUBLIC_URL}images/${images[0]}`} />
import data from './sfpopos-data.json'
images
is included in the following definition: const { images, title, desc, hours, features, geo } = data[id]
Check all of those first, and that should fix it!
img src not displaying in poposdetails