---
title: "Contract: a guide for humans"
description: "Contract, the language of an Exact app, from the first component to delivery."
modificationDate: "2026-11-30"
---

> ## Documentation index
> Fetch the complete documentation index at: https://exact.expo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Contract: a guide for humans

<AgentInstructions>

## Submitting feedback

From the app's directory, read `bun exact.mjs feedback status`. Under `never`, keep no note.
Respect `EXACT_FEEDBACK=0` and do not change the policy.

Otherwise record specific, actionable feedback with:
`bun exact.mjs feedback note "Exact docs: https://exact.expo.dev/learn/contract-for-humans: <what was wrong or missing>"`

The note goes to Expo only as that status allows. Include no secrets or personal data.

</AgentInstructions>

Contract describes an application's interface, state, and interactions. Exact
compiles it for the web and native hosts. You write the view once, in CSS's names
and layout; what you leave unsaid (controls, colour, type, how a press or a scroll
feels) is each platform's own (LLP 1115). Network access, persistent
storage, and substantial computation belong in a TypeScript or Rust data module.

This guide describes the implementation on `main` on 2026-10-02, including
immutable action locals, record construction, inferred action effects, and
component-level providers. The compiler and its tests are the authority.
Older Exact examples with `writes` clauses or component `contract` blocks no
longer compile.

Read this guide in order to learn the language, or use the contents as a reference.
The [agent guide](https://exact.expo.dev/learn/contract-for-agents.md) organizes the same language around
implementation and verification. The [grammar reference](https://exact.expo.dev/reference/contract-grammar.md)
collects syntax, operator precedence, built-in functions, tags, and events.
