Created
March 24, 2020 09:58
-
-
Save dandelionadia/685a5a41ce10f1c9a573931dd1afc2b2 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
useEffect(() => { | |
console.log("[Cockpit.js] useEffect"); | |
const timer = setTimeout(() => { | |
alert("foo time out"); | |
}, 1000); | |
return () => { | |
clearTimeout(timer); | |
}; | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment