React报错之Parameter 'props' implicitly has an 'any' type

正文从这开始~ 总览 当我们没有为函数组件或者类组件的props声明类型,或忘记为React安装类型声明文件时,会产生"Parameter 'props' implicitly has an 'any' type"错误。为了解决这个错误,在你的组件中明确地为props对象设置一个类型。 安装类型文件

你可能感兴趣的:(React报错之Parameter 'props' implicitly has an 'any' type)