Cleaned up tests and lint errors. Upgraded npm packages.
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
export function useResize(callback: () => void): () => void {
|
||||
export function onResize(callback: () => void): () => void {
|
||||
window.addEventListener("resize", callback);
|
||||
return () => window.removeEventListener("resize", callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user