Skip to main content
Are you looking for a framework other than React? Check the Getting Started guides in the sidebar.

Step By Step Guide

This guide will walk you through integrating the Dromo Uploader into your React application.
1

Installation

Install the Dromo React SDK NPM package:
Next, import the DromoUploader component in your file:
2

Basic Usage

Add the <DromoUploader /> component to your app. You’ll need to provide your licenseKey and configure fields, settings, user props, and an onResults callback.
This will render a button that says “Launch Dromo Importer”. Clicking it will open the Dromo modal. For a full list of props and detailed explanations, see the <DromoUploader /> Component Props Reference.
3

Opening the Uploader

There are two primary ways to control when the Dromo modal opens:

1. Using Children as a Trigger

If you provide children to the <DromoUploader /> component (like the “Launch Dromo Importer” button in the example above), these children will be rendered, and clicking them will open the Dromo modal.

2. Using the open Prop (v2.0.9+)

Alternatively, you can omit children and control the modal’s visibility programmatically using the open prop (boolean).
See more about the open prop in the <DromoUploader /> Component Props Reference.

Using a Saved Schema

You can use a schema created in Dromo’s Schema Studio by providing its ID via the schemaId prop. This simplifies the props you need to pass, as fields, most settings, and hooks will be loaded from your saved schema.
Learn more about creating schemas in the Schema Studio.

Walkthrough Video

Want a more detailed walkthrough? Jeff will escort you step-by-step through the process.