我应该在道具中使用哪种TypeScript类型来引用match对象?

reactjs React.js

卡卡西

2020-04-03

在我的React容器/组件中,我可以使用哪种类型来引用matchReact 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)的站点

0个回答

问题类别

JavaScript Ckeditor Python Webpack TypeScript Vue.js React.js ExpressJS KoaJS CSS Node.js HTML Django 单元测试 PHP Asp.net jQuery Bootstrap IOS Android