React Embedding
Embed FileFeed in React applicationsEmbed FileFeed in your React application using our React SDK. This provides React components and hooks for seamless data import, mapping, validation, and transformation.
Installation
Basic Implementation
1. Wrap Your App
Wrap your application with theFilefeedProvider:
2. Add Import Interface
Use theFilefeedWorkbook component to create a data import interface:
3. Configure Your Import
Set up your data schema and import preferences. No additional credentials required for basic usage. For configuration options, see Configuration.Complete Example
The example below will create a workbook with a contacts sheet. Users can upload CSV/Excel files or manually enter data.
Configuration Options
For all configuration options including custom transforms, validations, and advanced settings, see Advanced Configuration.Using Workbook Component
For more control, you can use theFilefeedWorkbook component directly with custom configuration:
Creating New Workbooks
To create a new Workbook each time:- Add a
workbookconfiguration object with sheets and fields - Optionally configure custom transforms and validations
- Set up event handlers for data processing
Using Hooks for Advanced Control
For more advanced control, you can use theuseFilefeed hook:
- Control the import interface programmatically
- Add custom event listeners and data processing
- Integrate with your existing UI components
TypeScript Support
The React SDK includes full TypeScript support:Next Steps
- Advanced Configuration: Custom transforms, validations, and advanced options
- Package Documentation: See @filefeed/react documentation
Quick Links
Advanced Configuration
Custom transforms, validations, and advanced options
Example Projects
React Boilerplate
Complete React application with FileFeed embedding - ready to run example