mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
docs: Update useWatch docs
This commit is contained in:
parent
f8ed0480de
commit
61a6083adf
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user