I receive an array like this from the backend :
['test.jpg', 'test2.jpg']
I put it into a React state named pictures.
What I need to do is to map on it, and for each picture name in the array, create an img with that name as variable in the path like this :
{pictures.map((picture) => (
<img
className="picture"
src={`http:localhost:8000/pictures/${ WHAT DO I NEED TO WRITE HERE ? }/>
)))}
src={`http:localhost:8000/pictures/${photo} />