1.0.7 • Published 3 years ago

react-make-dom-image v1.0.7

Weekly downloads
37
License
MIT
Repository
github
Last release
3 years ago

Install

Several quick start options are available:

  • Install with npm: npm install react-make-dom-image
  • Install with yarn: yarn add react-make-dom-image

Reqirement

  • Need a higher react 16.8 version

How to use

import { MakeDomImage } from 'react-make-dom-iamge';

const MyComponent = () => {
  const domRef = useRef();

  return (
    <div>
      <MyImageComponent ref={domRef}/>
      <MakeDomImage
        domRef={domRef}
        exportName="my-image-name"
        trigger={
          <button type="button">
            download image
          </button>
        }
      />
    </div>
  )
}
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago