Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
363 stars 60 forks source link

Maybe it would be better to make jsonToCSV also work like a pure function. #135

Closed s5s5 closed 2 years ago

s5s5 commented 2 years ago

Hi, thanks for your great work, I have a problem when I upgraded from V3 to V4. I used jsonToCSV as a pure function in V3 and he worked fine, but upgrading to V4, jsonToCSV became a hook, which restricts it and it can't be used in I suggest to put jsonToCSV and some other pure functions without restricting it to a hook. Thanks.

Bunlong commented 2 years ago

@s5s5 Okay, I got it. I'm going to add jsonToCSV as a pure function in next version in next week. Thanks!