New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-make-dom-image

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-make-dom-image

react dom to image, make dom to image, react

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source


React Make Dom Image

use dom-to-image



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

Keywords

react

FAQs

Package last updated on 15 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts