# ComponentEmbed

`function` in `discord-component-embed/react` · v1.1.1

<https://seedcord.org/docs/packages/discord-component-embed/1.1.1/functions/component-embed>

Renders the `<script>` tag Discord reads for a component embed. Render this on the server or at build time because
Discord does not run JavaScript. It works in the `<head>` or the `<body>`.

```ts
ComponentEmbed(
    { children },
    input: ComponentEmbedProps
): ReactElement
```

Renders the `<script>` tag Discord reads for a component embed. Render this on the server or at build time because
Discord does not run JavaScript. It works in the `<head>` or the `<body>`.

Parameters.

- `{ children }`
- `input` `ComponentEmbedProps`

Returns `ReactElement`.
