Created
October 22, 2019 20:58
-
-
Save angarsky/0f9e0162740a7f4c6bf8710f4a54edc9 to your computer and use it in GitHub Desktop.
A Promise test for React apps
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 promise = new Promise(function(resolve) { | |
setTimeout(resolve, 3000); | |
}) | |
.then(() => { | |
console.log('After 3 sec!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment