配置很简单,先安装 @types/react 包( npm i -D @types/react ),然后在 tsconfig.json 的编译配置项 compilerOptions 中配置 "jsx" 项为 "react" ...
確定! 回上一頁