我正在尝试实现来自react-hook-forms for react-select的react-select,但为了做到这一点,我需要使用来自react-hook-forms的Controller,但是当我使用我的react-select component代码import Select from 'react-select';
import{ Controller } f
我有一个由react-hook-form创建的表单,我有一个多选择字段,用户可以在其中选择多个字段。现在,如果用户不在列表中,我希望允许用户添加任何新选项:import { useForm, Controller } from "react-hook-form";import * as Yup from "yup";
import Select from &