docs: Update useWatch docs

This commit is contained in:
zombiej 2022-04-18 10:37:12 +08:00
parent f8ed0480de
commit 61a6083adf

View File

@ -19,7 +19,7 @@ import React from 'react';
import { Form, Input, InputNumber, Typography } from 'antd';
const Demo = () => {
const [form] = Form.useForm<{ user: { name: string; age: number } }>();
const [form] = Form.useForm<{ name: string; age: number }>();
const nameValue = Form.useWatch('name', form);
return (