React adapter for csvbox.io
npm install @csvbox/react
import { CSVBoxButton } from '@csvbox/react'
<CSVBoxButton
licenseKey="Sheet license key"
user={{
user_id: "default123"
}}
onImport={(result, data) => {
if(result){
console.log("success");
console.log(data.row_success + " rows uploaded");
//custom code
}else{
console.log("fail");
//custom code
}
}}
>
Import
</CSVBoxButton>
For usage see the guide here - https://help.csvbox.io/getting-started#2-install-code
MIT © csvbox-io