react-html2pdf

1.0.1 • Public • Published

react-html2pdf

covert html to pdf

Install package

$ npm i react-html2pdf

Usage

//import
import { Preview, print } from 'react-html2pdf';
 
//render
<Preview id={'jsx-template'} >
    <p>adsf</p>
</Preview>
<button onClick={()=>print('a', 'jsx-template')}> print</button>

Example

Check full example in the example folder.

License

MIT License. © 2018 San Pyae Lin

/react-html2pdf/

    Package Sidebar

    Install

    npm i react-html2pdf

    Weekly Downloads

    595

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • spl-react
    • sanpyaelin