Below is some sample React code. Be sure to insert your own Organization’s API key and an Importer ID from your account. They can be found on the Importers page.
Note for Next.js users: This code can be used for Next.js versions lower than 14. For Next.js versions 14 and 15, add "use client" to the first line of the file.