Warning: [antd: Form.Item] `children` is array of render props

antd报错:Warning: [antd: Form.Item] children is array of render props cannot have name.
【Warning: [antd: Form.Item] `children` is array of render props】如图:Warning: [antd: Form.Item] `children` is array of render props
文章图片

本意是想要在input下面增加一行提示文字、和增加button。
Warning: [antd: Form.Item] `children` is array of render props
文章图片

Warning: [antd: Form.Item] `children` is array of render props
文章图片

代码:
Warning: [antd: Form.Item] `children` is array of render props
文章图片

解决:
增加button: input用一个form.item单独包裹。
Warning: [antd: Form.Item] `children` is array of render props
文章图片

增加文字提示:form.item新增属性:extra="xxxxx"即可
![image.png](/img/bVcWQaj

    推荐阅读