UNPKG

react-csv-reader

Version:

React component that handles csv file input.

35 lines (24 loc) 576 B
--- route: /usage name: Usage --- import CSVReader from '../src' import { Props, Playground } from 'docz' # CSVReader Bare minimal example: ```tsx import * as React from 'react' import CSVReader from 'react-csv-reader' const App: React.FC = () => ( <CSVReader parserOptions={{ header: true }} onFileLoaded={(data, fileInfo) => console.dir(data, fileInfo)} /> ) ``` ## Playground <Playground> <CSVReader parserOptions={{ header: true }} onFileLoaded={(data, fileInfo) => console.dir(data, fileInfo)} /> </Playground> ## Props <Props of={CSVReader} />