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

# `__GetComponentID`

## Introduction

Returns the componentID of a ComponentElement.

## Syntax

```jsx
__GetComponentID(element: Element) : string;
```

### Parameters

|   Key   | Description           |
| :-----: | --------------------- |
| element | Any ComponentElement. |

### Return Value

Returns the componentID of the ComponentElement.

## Example

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

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

let id = __GetComponentID(element);
```
