javascript:类型’Readonly <{children?:ReactNode;不存在属性’XYZ’; }>
emer 发布于 2021-12-21 11:24 1284 次阅读
interface IRecipeProps {
ingredients?: string[];
title?: string;
img?: string;
instructions?: string;
}
interface IRecipeState {
}
class Recipe extends Component<IRecipeProps, IRecipeState> {}
解决