缺少属性 'name'

作者: hun1ahpu创建于 2017年6月6日更新于 2019年5月12日

完成教程的所有步骤后,index.tsx 文件出现错误: 19 行 `Property 'name' 在类型 'IntrinsicAttributes & IntrinsicClassAttributes<Component<Props, ComponentState>> & Readonly<{ chi ... >' 中缺失。`my-app (tsconfig 项目)

内容来源: microsoft/TypeScript-React-Starter