docs: 📝 instruction about useForm

close https://github.com/ant-design/codemod-v4/issues/90
This commit is contained in:
偏右 2020-03-04 11:26:37 +08:00 committed by GitHub
parent 55734400cc
commit 3c292b9d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,10 +9,14 @@ title:
通过 `Form.useForm` 对表单数据域进行交互。
> 注意 `useForm` 是 [React Hooks](https://reactjs.org/docs/hooks-intro.html) 的实现只能用于函数组件class 组件请查看下面的例子。
## en-US
Call form method with `Form.useForm`.
> Note that `useForm` is a [React Hooks](https://reactjs.org/docs/hooks-intro.html) that only works in functional component.
```tsx
import { Form, Input, Button, Select } from 'antd';