How to use antd.Form.create in typescript?
I have a login form created by Form.create(), but I can't pass any props to this form from parent component, compiler always notify a error like error TS2339: Property 'loading' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Compone nt<{}, ComponentState>> & Readonly<{ childr...'. LoginForm.tsx import * as React from 'react'; import { Form } from 'antd'; import { WrappedFormUtils } from 'antd/lib/form/Form'; interface Props { form: WrappedFormUtils; loading: boolean; username?: string; } class LoginForm extends React.Component<Props, {}> { render() { const { loading } =