Last active
September 25, 2017 04:48
-
-
Save Kcin1993/77a731b114c4ddbcdb8235c3a976fa36 to your computer and use it in GitHub Desktop.
TypeScript React component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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