项目作者: Lincerossa

项目描述 :
react-hook-form implementation, controlled form, antd design, react, react-hooks
高级语言: JavaScript
项目地址: git://github.com/Lincerossa/form-one.git
创建时间: 2020-09-17T13:07:12Z
项目社区:https://github.com/Lincerossa/form-one

开源协议:MIT License

下载


👋🏻 Welcome to FORM-ONE

Why?

form-one is built onto the react-hook-form library (V6) (which is an amazing library itself 🦄).
form-one it is an abstraction of the react-hook-form library.
form-one let you focusing just on the form api interface, which is really simple.

How?

The ui is made with ❤️ using the antd library and the core is built abstracting the react-hook-form library.

How to use form-one?

You can use form-one in React apps by just installing it

  1. npm i form-one
  2. import FormOne from 'form-one'

Why it is so simple?

These are the available props:

  1. <FormOne
  2. onChange
  3. onSubmit
  4. inputs
  5. layout
  6. validationSchema
  7. initialValues
  8. ></FormOne>

Let’s have a look about how it works in a real demo, by visiting it’s playground in Codesandbox or its storybook