> ## Documentation Index
> Fetch the complete documentation index at: https://docs.embeddables.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Embed in a React app

> How to publish your Embeddable inside a React app

Embedding your Embeddable in a React app is straightforward, and looks similar to the process of embedding in a regular website.

> [!TIP]
>
> Looking for other ways to publish your Embeddable? Check out the [Publish to your site](https://docs.embeddables.com/features/publish-to-your-site) guide.

## Embedding in React

**1. Grab the embed code**

Head to the Embeddable in the [Web App](https://app.embeddables.com/), click **Embed Code** in the top-right corner,
and you'll see the two-part embed code in the pop-up modal.

![](https://assets.embeddables.com/2025-04-1011_18708467466947587.12.05.gif)

**2. Insert the first part in the Head**

The first part of the embed code (the large part) should go in the `<HEAD>` of the page.

**This only needs to be added once** - if it's already installed on all pages of your site then you can skip this step.

This is the large part that starts like this:

```html Embed Code - Part 1/2 theme={null}
<script> const SAVVY_PRELOAD_IDS=...
```

**3. Insert the second part in the Body**

The second part of the embed code should go in the `<BODY>` of the page, wherever you want the Embeddable to appear on the page.

The is the part that looks like this (where `flow_abcdefhijklm` is your Embeddable ID):

```html Embed Code - Part 2/2 theme={null}
<savvy id="flow_abcdefhijklm"></savvy>
```

## Embedding in a website or native app?

> [card] [Embed in your site](https://docs.embeddables.com/how-to/embed-in-your-site.md)
>
> How to publish your Embeddable to your site

> [card] [Embed in a Webflow site](https://docs.embeddables.com/how-to/embed-in-your-webflow-site.md)
>
> How to publish your Embeddable to your Webflow site

> [card] [Embed in a WordPress site](https://docs.embeddables.com/how-to/embed-in-your-wordpress-site.md)
>
> How to publish your Embeddable to your WordPress site

> [card] [Embed in a Framer site](https://docs.embeddables.com/how-to/embed-in-your-framer-site.md)
>
> How to publish your Embeddable to your Framer site

> [card] [Embed in a React Native app](https://docs.embeddables.com/how-to/embed-in-react-native.md)
>
> How to publish your Embeddable inside a React Native app

## Troubleshooting

### React is giving me a warning about an unrecognized `<savvy>` tag

Sometimes in the console, you will see this warning log from React:

```mdx Console theme={null}
Warning: The tag <savvy> is unrecognized in this browser.
If you meant to render a React component, start its name with an
uppercase letter.
```

This warning can be safely ignored, and should have no impact on your app.

However, if you want to avoid the warning appearing in the console, a workaround is to
insert the savvy just after the initial render using React's `useEffect` hook:

```javascript App.js theme={null}
useEffect(() => {
  const htmlElement = `<savvy id="flow_abcdefhijklm"></savvy>`;
  const container = document.getElementById("my-container"); // Select the container that the Embeddable should appear in
  container.innerHTML = htmlElement; // Use '+=' if you want to append the Embeddable to the contents of the container, instead of replacing the contents
});
```

> [!NOTE]
>
> Typescript samples will be added to this page soon


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.