Created
January 12, 2023 08:47
-
-
Save ImKubass/309077d30cb8eb674519124543d0067e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const handle = () => { | |
console.log("Yo my size changed, do something with me") | |
} | |
const resizeObserver = new ResizeObserver(handle) | |
resizeObserver.observe(myElement) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment