react-html2pdf
React and html to pdf generator
Install package
$ npm i react-html2pdf-forked
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>
License
MIT License. © 2022 Alkhimch