Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReactJS components for PDF export, Excel export and print

I´m building some ReactJS Table and Report components tha basically will contain <table> data, some graphics (d3) and some textual data. I need to provide 3 buttons:

  1. Export to PDF
  2. Export to Excel
  3. Print

Are there any trustable packages available for the tasks above using ReactJS ? What is the approach to handle these requirements ?

like image 536
Mendes Avatar asked Jul 05 '17 01:07

Mendes


Video Answer


1 Answers

I would use a combination of the following JavaScript libraries:

React Csv is my favourite JavaScript library for working with csv. It excels at dynamic generation.

PDF Make is my favourite JavaScript library for generating PDFs.

Note: I would attach the files to this post, but there is currently no facility for this in StackOverflow.

like image 160
Alexander Avatar answered Sep 29 '22 22:09

Alexander