@effective-forms/core
v0.0.14
Published
See full [documentaion](https://github.com/MiiZZo/effective-forms) ## Installation
Downloads
3
Maintainers
Readme
@effective-forms/zod
See full documentaion
Installation
NPM
npm install effector @effective-forms/core
Yarn
yarn add effector @effective-forms/core
Usage example
import { createForm } from '@effective-forms/core';
const form = createForm(
fields: {
email: {
init: '',
validator: (email) => {
if (email.length > 2) {
return { result: true };
}
return { result: false, errors: ['is not valid'] };
},
}
},
validator: (fields) => ...
);