react-component-to-s3
v0.1.0
Published
Render a React component to an S3 bucket
Downloads
4
Readme
react-component-to-s3
Render a React component to an S3 bucket
$ npm install --save react-component-to-s3
usage
const ComponentToS3 = require('react-component-to-s3')
const uploadComponent = ComponentToS3({
bucketName: 'my-bucket',
acl: 'public-read'
})
uploadComponent(MyReactComponent, {
props: {
title: 'cool'
}
}, (error, result) => {
console.log(result.url)
})