react-csv-reader
Version:
React component that handles csv file input.
37 lines (25 loc) • 1.09 kB
text/mdx
route: /
name: Home
# react-csv-reader
[](https://www.npmjs.com/package/react-csv-reader)
[](https://www.npmjs.com/package/react-csv-reader)



React component that handles csv file input.
It handles file input and returns its content as a matrix.
You can try it out in the [playground](/usage#playground) or in the [demo on Codesandbox](https://codesandbox.io/s/react-csv-reader-vtull).
## Installation
Install the package with either yarn or npm.
With yarn:
```sh
yarn add react-csv-reader
```
With npm:
```sh
npm install --save react-csv-reader
```
## TypeScript support
For type definitions, see [here](https://github.com/nzambello/react-csv-reader/blob/master/src/index.tsx#L5).