崮生的笔记

2024-06-12

约 125 字阅读约 1 分钟

JSX 元素隐式具有类型 "any",因为不存在接口 "JSX.IntrinsicElements" 解决方案

tsconfig compilerOptions​ 选项中添加
json
"jsx": "react-jsx", "jsxImportSource": "preact",