react-html2pdf
v1.0.1
Published
pdf generate libs for react js
Downloads
2,743
Readme
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