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

# `__UpdateComponentID`

## Introduction

Updates the componentID of a ComponentElement.

## Syntax

```jsx
__UpdateComponentID(element: Element, componentID: string) : void;
```

### Parameters

|     Key     | Description                                                                                          |
| :---------: | ---------------------------------------------------------------------------------------------------- |
|   element   | Any ComponentElement.                                                                                |
| componentID | The componentID assigned to the ComponentElement by the frontend framework, which is case-sensitive. |

### Return Value

No return value.

## Example

The frontend framework can update the componentID of a ComponentElement as follows.

```javascript
// main-thread.js
let element = __CreateComponent(0, '1', 1, '', 'name', 'path', {}, {});

__UpdateComponentID(element, '2');
```
