Skip to content

Instantly share code, notes, and snippets.

@tvaisanen
Created November 9, 2018 21:18
Show Gist options
  • Save tvaisanen/990d8148a768708c8f1ad2026716e94d to your computer and use it in GitHub Desktop.
Save tvaisanen/990d8148a768708c8f1ad2026716e94d to your computer and use it in GitHub Desktop.
import React from 'react';
import {connect} from 'react-redux';
import { Container } from "./{component-name}.styled";
import * as actions from "./{component-name}.actions";
type Props = {};
const ComponentName = (props: Props) => {
return <Container />
};
export default connect(
componentNameCtrl.mapStateToProps,
componentNameCtrl.mapDispatchToProps
)(ComponentName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment