Installation
You can add Modular Forms to your project via npm
. If you use yarn
or pnpm
, just replace the installation command at the beginning.
npm install @modular-forms/react
Since Modular Forms for React is implemented with Preact Signals, you need to install the following peer dependency as well. Please have a look at the README of @preact/signals-react
to learn how to configure it properly.
npm install @preact/signals-react
After that you can import it into any JavaScript or TypeScript file.
import { … } from '@modular-forms/react';