Installation
Install the package with your preferred package manager:
npm install gform-reactyarn add gform-reactpnpm add gform-reactPeer dependencies
gform-react relies on React as a peer dependency:
| Package | Version |
|---|---|
react | >=18.0.0 |
react-dom | >=18.0.0 |
React 18+ is required because the form store is built on
useSyncExternalStore
Next steps
- Core Concepts - the typed interface, the
validatorsobject, and theGFormcomponent. - Your First Form - build and run a small validated form in a few lines.
- Validation - go deeper on native, custom, and async validation.
- Examples & Playground - explore complete, runnable forms.