MCPcopy Create free account
hub / github.com/Shitanshukumar607/Drawspace / handleResize

Function handleResize

components/CanvasComponent.tsx:37–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36 useEffect(() => {
37 const handleResize = () => {
38 setWidth(window.innerWidth);
39 setHeight(window.innerHeight);
40 };
41
42 handleResize();
43 window.addEventListener("resize", handleResize);

Callers 1

CanvasComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected