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 TS23
I got a better approach from antd documentation
import { Form } from 'antd';
import { FormComponentProps } from 'antd/lib/form';
interface UserFormProps extends FormComponentProps {
age: number;
name: string;
}
class UserForm extends React.Component {
// ...
}
const App = Form.create({
// ...
})(UserForm);