import React from "react"; import { HPCCZoomElement } from "@hpcc-js/wc-layout"; import logo from './logo.svg'; import './App.css'; HPCCZoomElement.register(); function App() { const ref = React.useRef(null); React.useLayoutEffect(() => { const handleChange = () => { console.log("zoom", Date.now()) }; const { current } = ref; if (current) { current.addEventListener('zoom', handleChange); return () => current.removeEventListener('zoom', handleChange); } }, [ref]); const handleChange = React.useCallback((ev) => { console.log("woohoo", Date.now()); }, []); return

Try Dragging and Zooming Me

logo

Edit src/App.tsx and save to reload.

Learn React

Try Dragging and Zooming Me

; } export default App;