Its instance type 'Component<Omit<FormComponentProps<any>, "form">, any, any>' is not a valid JSX element.
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
使用antd的form表单 报错 Its instance type 'Component<Omit<FormComponentProps, "form">, any, any>' is not a valid JSX element. The types returned by 'render()' are incompatible between these types.
我给这个组件指定了泛型还是同样报错
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names an antd Form component and a JSX render-type error but no repository file or test. First reproduce the reported component usage, then determine whether react.dev has a relevant documentation entry; done requires a documented, reproducible resolution or a clearly scoped documentation change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100