P E N C I L
Login
CheatSheet : React router

MATCH + Typescript

https://stackoverflow.com/questions/48138111/what-typescript-type-should-i-use-to-reference-the-match-object-in-my-props

interface MatchParams {

name: string;

}

interface Props extends RouteComponentProps<MatchParams> {

}

export default withRouter(LoanPage);

or

interface Props extends RouteComponentProps<{loanId: string}> {

}