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

# `__FirstElement`

## Introduction

Returns the first child node of an Element.

## Syntax

```jsx
__FirstElement(element: Element) : Element|undefined;
```

### Parameters

|   Key   | Description         |
| :-----: | ------------------- |
| element | Any Element object. |

### Return Value

Returns the first child Element of the current Element.

## Example

The frontend framework can retrieve the first child Element of an Element as follows.

```jsx
// main-thread.js
let element = __CreateElement('view', 0, {});

let first = __FirstElement(element);
```
