Skip to content

React

This is the heart of Arc on the frontend: a small set of hooks and helpers that turn your generated command and query proxies into idiomatic React. You import a proxy, call its .use() hook, and get a typed, reactive instance — no API client, no DTOs, no manual loading state. Start with Commands and Queries; the rest of the pages here refine those two with validation, scopes, and identity.

TopicWhat it covers
CommandsThe .use() hook — instantiate, bind, validate, and execute a command from a component.
Command ValidationPre-flight validation: catch invalid input before the request leaves the browser.
Command ScopesA scope that captures changes, validation, and errors across several commands in one UI.
TopicWhat it covers
QueriesReading data with .use() — including live, observable queries that re-render on change.
TopicWhat it covers
Configure ArcPoint the React app at your backend and set transport, headers, and identity.
IdentityWho the user is, and what they’re allowed to see and do.
DialogsConsistent dialog handling for command and data-entry flows.
Proxy GenerationHow the typed proxies you import here are generated from C#.
StorybookThe Storybook for the components Arc exposes.
Story ComponentsBuilding good-looking, consistent stories.

Prefer a structured, testable approach for complex screens? See MVVM with React.