javascript:类型’Readonly <{children?:ReactNode;不存在属性’XYZ’; }>

interface IRecipeProps {
ingredients?: string[];
title?: string;
img?: string;
instructions?: string;
}
interface IRecipeState {
}
ingredients?: string[];
title?: string;
img?: string;
instructions?: string;
}
interface IRecipeState {
}
class Recipe extends Component<IRecipeProps, IRecipeState> {}
解决
本文作者:lininn
文章标题: javascript:类型’Readonly <{children?:ReactNode;不存在属性’XYZ’; }>
本文地址:?post=546
版权声明:若无注明,本文皆为“覆手为雨”原创,转载请保留文章出处。
本文地址:?post=546
版权声明:若无注明,本文皆为“覆手为雨”原创,转载请保留文章出处。
相关文章