Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const testPromise = () => {
- getAsyncData() // an async method that returns a promise.
- .then(data => {
- console.log(data)
- return data
- });
- }
- testPromise()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement