1.0.1 • Published 5 years ago

react-html2pdf v1.0.1

Weekly downloads
249
License
MIT
Repository
github
Last release
5 years ago

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