Hi all I have following code: my code
I am receiving some response from backend.
I am trying to get all images from imagesData and show in ImageComponent component.
I am using map function in my main component in this way:
{!!res &&
res.map((data) =>
{
return <ImageComponent key={data.publicId} {...data} />;
})}
and here is my ImageComponent component:
const ImageComponent = ({ img }) => {
return (
<div>
<img src={img} alt="pic" />
</div>
);
};
But something went wrong please help me to resolve this problem.