Skip to content

Instantly share code, notes, and snippets.

@angarsky
Created October 22, 2019 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angarsky/0f9e0162740a7f4c6bf8710f4a54edc9 to your computer and use it in GitHub Desktop.
Save angarsky/0f9e0162740a7f4c6bf8710f4a54edc9 to your computer and use it in GitHub Desktop.
A Promise test for React apps
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