如何将onSubmit的值类型设置为react-最终形式。 name: string;<Form onSubmit={(values: IValues) => {}}> // Error happens here// Type '{}' is missing the following properties from type '
我使用react-final-form创建了一个表单。自动对焦不起作用。我所知道的唯一解决方案是使用React的ref特性。我可以使用react-final-form库自动聚焦输入吗?import React from "react";import { Form, Field } from "react-final-form