Skip to content

Commit

Permalink
Added filename as second argument in onFileLoaded example
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello authored Jan 14, 2020
1 parent acbcea4 commit 186a423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class App extends Component {

render() {
return (
<CSVReader onFileLoaded={data => console.log(data)} />
<CSVReader onFileLoaded={(data, fileName) => console.log(data, fileName)} />
)
}
}
Expand Down

0 comments on commit 186a423

Please sign in to comment.