# ComponentEmbed

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

<https://seedcord.org/docs/packages/discord-component-embed/1.0.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 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`.
