# ComponentEmbed

`function` in `discord-component-embed/react` · v0.2.2

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

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

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

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

Parameters.

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

Returns `ReactElement`.
