Last active
June 3, 2018 12:51
-
-
Save santosh-btc/4ad769a28bb10fd7313e85274c3a1e35 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 sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
export default (async function showResults(values) { | |
await sleep(500); | |
window.alert(`You submitted:\n\n${JSON.stringify(values, null, 2)}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment