> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# Interface: CloneElement()

ReactLynx `cloneElement` 的调用签名。

> **CloneElement**\<`Props`>(`element`: `ReactElement`\<`Props`>, `props?`: `Partial`\<`Props`> & `Attributes` | `null`, ...`children`: `ReactNode`\[]): `ReactElement`\<`Props`>

克隆一个元素，可以选择替换 props 和 children。

## Type Parameters

| Type Parameter |
| -------------- |
| `Props`        |

## Parameters

| Parameter      | Type                                         |
| -------------- | -------------------------------------------- |
| `element`      | `ReactElement`\<`Props`>                     |
| `props?`       | `Partial`\<`Props`> & `Attributes` \| `null` |
| ...`children?` | `ReactNode`\[]                               |

## Returns

`ReactElement`\<`Props`>
