Skip to content

Instantly share code, notes, and snippets.

@Kcin1993
Last active September 25, 2017 04:48
Show Gist options
  • Save Kcin1993/77a731b114c4ddbcdb8235c3a976fa36 to your computer and use it in GitHub Desktop.
Save Kcin1993/77a731b114c4ddbcdb8235c3a976fa36 to your computer and use it in GitHub Desktop.
TypeScript React component
import * as React from 'react';
import { connect } from 'react-redux'
import * as styles from './ComponentName.css'
export interface Props {
}
const ComponentName: React.SFC<Props> = (props): React.ReactElement<any> => (
<div>
<h1>Welcome to this component</h1>
</div>
)
const mapStateToProps = (state: any) => ({})
const mapDispatchToProps = {}
export default connect(mapStateToProps,mapDispatchToProps)(ComponentName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment