import { IArticle } from '../../types'
interface Params {
id: string
}
interface State {
pos: IArticle
star:string
}
type Props = RouteComponentProps<Params>
export default class Detail extends React.Component<Props&State> {
state: State = {
pos: ********,
star:undefined
}
这个pos应该在下面怎么定义啊
你好,我是有问必答小助手。为了技术专家团更好地为您解答问题,烦请您补充下(1)问题背景详情,(2)您想解决的具体问题,(3)问题相关代码图片或者报错信息。便于技术专家团更好地理解问题,并给出解决方案。
您可以点击问题下方的【编辑】,进行补充修改问题。