0.1.3 • Published 6 years ago

react-dropzone-csv-to-json v0.1.3

Weekly downloads
63
License
-
Repository
github
Last release
6 years ago

What it does?

Actually it does nothing much. This module is just an extension of fabulous react-dropzone. On accepting CSV file it will give you back JSON. That's it.

Usage

        <div>
          <DropZone
            getJson={jsonResult => {
              this.setState({ jsonResult });
            }}
          >
            <p>Add a file and see for yourself</p>
          </DropZone>
          {this.state.jsonResult ? (
            <div>{JSON.stringify(this.state.jsonResult)}</div>
          ) : null}
        </div>