# createElement

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

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

The JSX transform calls this itself when a `key` comes after a spread. Use [`h`](/packages/discord-component-embed/0.2.2/functions/h) to build an element by hand.

```ts
createElement(
    type: unknown,
    config:
        Record<string, unknown> | null,
    children: EmbedNode[]
): EmbedElement
```

The JSX transform calls this itself when a `key` comes after a spread. Use [`h`](/packages/discord-component-embed/0.2.2/functions/h) to build an element by hand.

Parameters.

- `type` `unknown`
- `config` `Record<string, unknown> | null`
- `children` `EmbedNode[]`

Returns `EmbedElement`.
