Hi guys, good morning. Is posible use this component in React? How? As I do any other component?
I'm sorry for molest with my question.
Regards
Javier.
This is a normal javascript plugin, and it doesn't interact with the DOM, so what prevents you from using it in React? I myself use it in VueJS.
You npm install jspdf jspdf-autotable and import it:
import jsPDF from 'jspdf'
import 'jspdf-autotable'
// ..
function print() {
const doc = new jsPDF()
doc.autoTable({ /* .. */ })
doc.save('print.pdf')
}
Thank you so much MMGHV for your help. I thought in this possibility, but I didn't want work without security that was possible use.
Regards.
Javier.
Most helpful comment
Thank you so much MMGHV for your help. I thought in this possibility, but I didn't want work without security that was possible use.
Regards.
Javier.