import React, { useState } from "react"; import { Button, Container, FormControl, FormGroup, FormLabel, Image } from "react-bootstrap"; import useFileChange from "../Hooks/FilesUpload/useFileChange"; const ImageUpload = () => { const { onFileChangeHandler } = useFileChange(); const [selectedFiles, setSelectedFiles] = useState([]); return ( Upload Images: setSelectedFiles(Array.from(e.target.files))} /> {selectedFiles.map((file, index) => ( {}} fluid src={URL.createObjectURL(file)} alt={`Uploaded Image ${index + 1}`} /> ))} ); }; export default ImageUpload;