Install and render with React
React
For a new web application, use the CLI quickstart. The maintained React and Vite starter includes the binding, configuration, and example schemas.
To add form0 to an existing application:
Code
The host application must also provide compatible peer dependencies:
- Node.js 22 or newer for installation and build tooling
- React 18 or 19
- React DOM 18 or 19
@vanilla-extract/css1.17.4 or newer
Render a schema
Code
schema must contain a valid form0-core form object. Start with
Edit your first schema or review the
Form object.
onSubmit receives a structured form0 record. The second argument exposes raw values, repeatable
state, timestamps, and the validation summary. See
Values, snapshots, and submission.
[!NOTE]
FormRendererruns the engine on the main thread by default. Vite applications can opt into the packaged module worker withengineMode="worker".
Last modified on