I am going to use jsPDF library in React.JS but it got error, please let me know if someone get my query. I was trying to this more than 2 days but I can\'t.
We can now also convert React components directly to pdf.
The idea is to pass the react-rendered through following transformation: DOM -> CANVAS -> PNG -> PDF
For DOM to Canvas, we can use the html2canvas library. Canvas to PNG is straight forward. From PNG to PDF, we can use jsDom.
I've posted an answer explaining the same with more details and code samples here.