2024-06-12
JSX 元素隐式具有类型 "any",因为不存在接口 "JSX.IntrinsicElements" 解决方案
tsconfig
compilerOptions 选项中添加
json
"jsx": "react-jsx",
"jsxImportSource": "preact",
compilerOptions 选项中添加