Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

sanpyaelin/react-html2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-html2pdf

Covert html to pdf & print

Live demo: react-html2pdf

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

About

covert html to pdf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published