# react-csv/react-csv

React components to build CSV files on the fly basing on Array/literal object of data

Repository: https://github.com/react-csv/react-csv
Canonical: https://ross.abutalabs.com/products/react-csv
Homepage: http://react-csv.github.io/react-csv/
Language: JavaScript
License: MIT
License Family: permissive
Topics: csv-document, reactjs, etl, excel, reporting
Last push: 2024-04-03T11:34:59+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3568, "days_push": 882, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1184, forks 261 (observed 2026-08-28T04:03:54.604017+00:00)

## What it is
A React component library providing CSVLink and CSVDownload components to generate and download CSV files on the fly from arrays, objects, or strings. It handles browser download behavior including legacy browser quirks like IE11 and Safari.

## Use cases
- export table data to csv in react
- download report as csv from react app
- generate csv file from array of objects
- add download csv button to react component
- export excel-compatible csv from frontend data
- trigger csv download on button click

## When to choose
- you need client-side CSV export in a React app
- your data is already in the browser as arrays or objects
- you want simple declarative components with headers and download links

## When to avoid
- you need to parse or read CSV files rather than generate them
- you are not using React
- you need server-side streaming of very large CSV exports

## Facets
- artifact type: library
- maturity: maintenance
- function: csv, serialization, ui-components, file-system
- domain: frontend, web-development, files, spreadsheets
- platform: browser, cross-platform
- tags: react, csv-export, download-link, excel, reporting, web-server, nodejs

## Member repositories
- react-csv/react-csv (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.604017+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:24:29.603396+00:00, confidence not recorded.
  - readme: https://github.com/react-csv/react-csv (fetched 2026-08-28T04:03:54.604017+00:00, sha 75afda0332a6)
  - homepage: http://react-csv.github.io/react-csv/ (fetched 2026-08-29T12:31:22.618796+00:00, sha 1cec1faf04d9)
  - registry_npm: https://registry.npmjs.org/react-csv (fetched 2026-08-29T12:31:22.627995+00:00, sha ed3b27125890)
- Data as of 2026-08-30T08:39:29.467469+00:00.
