I am creating an application in React and .NET Core API. I have created mine grid (not using any npm package for this).
There is functionality required to export grid data to pdf, excel and csv format. How can i achieve this without any npm package or library?
I will get data(in List) form server (.NET core API) on download click button.
I have tried some npm packages like react-csv, downloadjs but they are not working as expected.
Mine data in array of objects format:
[{firstColumn: "1", secondCoulmn: "4", thirdColumn: "test"},
{firstColumn: "2", secondCoulmn: "3", thirdColumn: "test2"}]
When i am passing this data in downloadjs then excel file having [Object object] content and PDF file generated is corrupted.
For react-csv it is generating unknown file like b0d7cfd9-f4ca-4792-bfad-2b3198c63a33