From 3c292b9d628eebf4b27fb3c80107172959185ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 4 Mar 2020 11:26:37 +0800 Subject: [PATCH] docs: :memo: instruction about useForm close https://github.com/ant-design/codemod-v4/issues/90 --- components/form/demo/control-hooks.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/form/demo/control-hooks.md b/components/form/demo/control-hooks.md index 52cb53edd1..9b08f721cc 100644 --- a/components/form/demo/control-hooks.md +++ b/components/form/demo/control-hooks.md @@ -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';