I want to export contents from a function to a jsx file. Here's the code displayed in the console Promise { <pending> }
and in the jsx file it shows an error,I don't know where is the problem,
Error screenshot
Result of the jsx file
var foo= allBucketKeys(s3, "mymplifyroject-20190123180140-deployment").then(keys => {
v= [keys[1], keys[2], keys[3]];
console.log(keys);
});
console.log(foo);
export const listKey= foo;