# ComponentEmbed

`function` in `discord-component-embed` · v0.1.0

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

Renders the `<script>` tag Discord reads for a component embed. Discord does not run JavaScript, so render this on the server. Discord's docs say to put it in the page, typically in the `<head>`.

```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. Discord's docs say to put it in the page, typically in the `<head>`.

Parameters.

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

Returns `ReactElement`.
