react-component-to-s3

0.1.0 • Public • Published

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)
})

Readme

Keywords

none

Package Sidebar

Install

npm i react-component-to-s3

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • brandly