Sorry for my bad English I am also fairly new to React (just started yesterday)
but I would like to know how we can render a variable number of images like if I specify the no of images with an array specifying the file names it should render all the images
like is a there
array = ["1.jpg", "2.jpg", "3.jpg"]
arrLen = array.length
render(
<MultipleImage
noOfImage = { arrLen}
fileName = arrayOfFileNames
/>
);
Aucun commentaire:
Enregistrer un commentaire