MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / handleResize

Function handleResize

src/Components/Home/home.jsx:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 const nodeRef = useRef(null);
49 useEffect(() => {
50 const handleResize = () => {
51 setWidth(window.innerWidth);
52 setHeight(window.innerHeight);
53 };
54 const node = nodeRef.current;
55 node.addEventListener("click", clickHandler);
56 window.addEventListener("resize", handleResize);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected