I have an array of object, with each object having an imageUrl property, but when I loop through this array to display all images, the image doesn't get rendered
I loop through the array and pass the attribute housing the image link to the image src
const ProjectData = [
{
title: "RestaurantX",
imageUrl: "../assets/images/restaurantpassport.png",
githubUrl: "",
deployUrl: "",
description: "",
tech: []
},
]
{ProjectData.map(project => {
return (
<Work borderColor={changeColor()}>
<img
src={project.imageUrl}
alt={project.title}
/>
<a className="github">
<i className="material-icons">code</i>
</a>
<a className="deploy">
<i className="material-icons">launch</i>
</a>
</Work>
)
../) in an img src. You'll probably have to copy them in to a known folder in your output directory and then access them via/knownfolder/filename.png(../)still doesn't work