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.查看了网上的一些解决方案,大概就是这两种:方案一在tsconfig.json中设置"allowSyntheticDefaultImports": true方案二...