Created
July 24, 2016 04:57
-
-
Save RealDeanZhao/28267f32251868109b01fd19f3b7a378 to your computer and use it in GitHub Desktop.
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
class ClassBase extends React.Component<any, any>{ | |
componentWillMount = function (): any { | |
const {topicList, dispatch} = this.props; | |
dispatch(fetchTopics()); | |
}; | |
render() { | |
return ( | |
<div></div> | |
); | |
} | |
} | |
const mapStateToProps = (state: any, ownProps: any): any => ({ | |
}); | |
export const TopicList = connect(mapStateToProps)(ClassBase); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment