React 实战 | 解决引入Antd报警告JSX element type 'RadioGroup' is not a constructor function for JSX elements.

使用公司里的脚手架搭建react项目,可是在使用antd组件时,会显示警告: JSX element type ‘RadioGroup’ is not a constructor function for JSX elements. 查看了网上的一些解决方案,大概就是这两种:react 方案一 在tsconfig.json中设置"allowSyntheticDefaultImports": tru
相关文章
相关标签/搜索