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
相關文章
相關標籤/搜索