Skip to content

Instantly share code, notes, and snippets.

@gangstaJS
Created January 13, 2020 09:30
Show Gist options
  • Save gangstaJS/1ed74caeb6240593d57280f2fd804614 to your computer and use it in GitHub Desktop.
Save gangstaJS/1ed74caeb6240593d57280f2fd804614 to your computer and use it in GitHub Desktop.
import React, {Component} from 'react';
import {connect, ConnectedProps} from 'react-redux';
interface State {}
type Props = ConnectedProps<typeof connector>;
class Hello extends Component<Props, State> {
// ...
}
const connector = connect(
mapStateToProps,
mapActionsToProps,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment