July 19, 2023
React SDK
Embed a pre-built CSV and Excel file importer into your front-end application

Minimizing engineering time is one of our main focuses at TableFlow. We know firsthand how time-consuming adding CSV import to an application can be despite sounding simple at first. There are endless edge cases to consider with your user’s data being in any number of formats.
We want to provide engineers with a drop-in solution to import CSV and Excel files from their users.
TableFlow consists of a few different components:
- The backend to handle data processing and validation
- An interface to create and configure your import schema without having to update your code
- And an embeddable importer, via on of our frontend SDKs, which launches a modal to handle the file upload, data mapping, validation, and more:

How to use the SDK
First, create your importer. An importer allows you to define your schema (which columns you expect your users to upload), add validations, and view and consume the cleaned and validated data from your users. If you are using TableFlow cloud you can create and view your importers here.
Then, embed the importer using the SDK setting the importerId and other parameters such as darkMode 😈. You can copy+paste the code pre-filled with your importerId on the “Code” table of the importer on TableFlow cloud.
Test out your importer by clicking the button and uploading a file. When the import is complete, you can view your and download your data on TableFlow as a CSV, retrieve it via the API, or receive the data directly in the frontend using the onComplete event:
Next steps
The onComplete event listener allows you to consume imported data directly in your frontend application. You can find more details on the feature here.
Need help or have a feature request? Reach out to us over Slack!
