在我的React容器/组件中,我可以使用哪种类型来引用match
React Router DOM包含的部分?
interface Props {
match: any // <= What could I use here instead of any?
}
export class ProductContainer extends React.Component<Props> {
// ...
}
我应该在道具中使用哪种TypeScript类型来引用match对象?
在我的React容器/组件中,我可以使用哪种类型来引用match
React Router DOM包含的部分?
interface Props {
match: any // <= What could I use here instead of any?
}
export class ProductContainer extends React.Component<Props> {
// ...
}
第3972篇《我应该在道具中使用哪种TypeScript类型来引用match对象?》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点
相似问题
问题类别