I’m getting objects from s3 and now I want to show them as thumbnails in my react app, so how can I achieve it?
var params = {
Bucket: BUCKET_NAME,
Prefix: 'media',
};
s3.listObjects(params, function (err, data) {
if (err) console.log(err, err.stack);
else {
console.log('objects list', data); // successful response
}
});
I’m getting the contents in the response but the question is how can I display them in my app?