Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我让用户定义选项并将它们添加到数组中。我想防止用户添加重复值,但我找不到如何知道数组字段的表单状态。
我试过了,const formState = useFormState('array-field-name');但我无法访问值。
const formState = useFormState('array-field-name');