Skip to content

Instantly share code, notes, and snippets.

@svschannak
Created September 5, 2018 17:40
Show Gist options
  • Save svschannak/40718cbcf24ca8fa151cee9b730feba7 to your computer and use it in GitHub Desktop.
Save svschannak/40718cbcf24ca8fa151cee9b730feba7 to your computer and use it in GitHub Desktop.
React Router Match and Typescript
interface NewsletterDetailProps extends RouteComponentProps<any>, React.Props<any> {
}
const NewsletterDetail: React.StatelessComponent<NewsletterDetailProps> = props => {
const match = props.match;
return (
...
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment