我为最终形式创建了自定义的TextInput。我需要为FieldRenderProps指定类型。我有个错误:
TS2769: No overload matches this call. Overload 1 of 2, '(props: TextInputProps | Readonly<TextInputProps>): TextInput',
gave the following error.
Type '{ name: string; onBlur:
(event?: FocusEvent<HTMLElement, Eleme
我试图用这样的React-Final-Form构建一个简单的表单:
import * as React from "react";
import {
PrimaryButton,
} from "office-ui-fabric-react/lib/Button";
import { Form , Field } from "react-final-form";
import { FORM_ERROR } from "final-form";
import { IUserFormValues } from "../..
我想在react-final-form中使用带有Ant Design Input的react-input-mask。为了在react-final-form中使用antd,我还必须安装redux-form-antd。所以文件看起来是这样的:
import React from "react";
import ReactDOM from "react-dom";
import { Button } from "antd";
import { Form, Field } from "react-final-form";
import I
我目前正在使用react-final-form创建一个表单,并试图通过集成作为适配器使用react-phone-number-input,就像通过显示的那样。
我试图使用这个示例来了解它是如何完成的,但我不确定如何访问组件并正确地为其创建适配器。
import React from 'react';
import { Form, Field } from 'react-final-form';
import PhoneInput from 'react-phone-number-input';
const sleep = ms => ne