zoominout
import React, { useState, useRef, useEffect } from “react”; function ImageZoomInOut({ imageUrl }) { const [scale, setScale] = useState(1); const [position, setPosition] = useState({ x: 0, y: 0 }); const imageRef = useRef(null); const handleZoomIn = () => { setScale((scale) => scale + 0.1); }; const handleZoomOut = () => { setScale((scale) => scale – …