react-images-uploading
react-images-uploading copied to clipboard
how do i add multiple images that i already have the path to the component?
how do i add multiple images that i already have the path to the component?
if i have understand correctly the question you can create your own list of images and after you can iterate that on the compenent(1), if you wanna add after the uploaded images on your own list you can do this in the onChange(2) function
(2) <ImageUploading multiple value={images} onChange={onChange} (2) const onChange = (imageList, addUpdateIndex) => { setYourOwnList([...yourOwnList,imageList[addUpdateIndex].data_url]) }
(1) yourOwnList.map((image, index) => ( <ImageListItem key={index}> <img src={image}