📜  命名空间反应没有导出成员 FC - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:50.482000             🧑  作者: Mango

代码示例1
First check if your file has a "tsx" extension or not, if not add it .
//(First way)
npm install @types/react@latest --save-dev

//(Second way)
npm i @types/react@latest --save
delete node_modules
delete yarn.lock
then run
npm install or (yarn install)