React 类型错误: "children" 属性类型不兼容
您定义的接口Props中,children属性的类型为React.ReactElement,但是在实际使用中,children的类型为(string \| Element)[],这两个类型不兼容。您可以将接口Props中的children属性的类型修改为(string \| Element)[],或者根据实际情况修改ApplicationModal组件中使用children的方式。
原文地址: https://www.cveoy.top/t/topic/p9ij 著作权归作者所有。请勿转载和采集!