---
title: ".state()"
description: "Tutorial — define reactive state properties that trigger UI updates with the .state() builder method."
---

> Documentation Index
> Fetch the complete documentation index at: https://ilha.build/llms.txt
> Use this file to discover all available pages before exploring further.

# .state()

import { example } from "./state.examples";

Ilha uses Signals to make your components reactive. Use the `.state()` builder method
to define state - any property declared here will automatically trigger UI updates when it changes.
Pass the property name and its initial value. All state properties are then available
inside `.render()` via the `state` property.

## Similar concepts

- React: `useState`
- Vue: `reactive()`
- Svelte: `$state()`

Source: https://ilha.build/tutorial/counter/state/index.mdx
