A react button component to easily generate csv downloads of your json data. ✨
- Create a csv download from json data
- Lightweight
- Easy to use
- optional filename
Install with npm:
npm i @nuitech/react-json-to-csv
import CsvDownload from '@nuitech/react-json-to-csv'
...
<CsvDownload data={mockData} />
Prop | Type | Requirement | Default | Description |
---|---|---|---|---|
data | object |
required |
null |
object or array of objects |
filename | string |
optional |
"export.csv" | The complete filename |
Please help provide good data faster! Submit any issues and/or make a pull request!