Skip to content

Instantly share code, notes, and snippets.

@SanthoshVijayabaskar
Created June 12, 2016 03:20
Show Gist options
  • Select an option

  • Save SanthoshVijayabaskar/7bae5042ed789f2bd152481a8c92056d to your computer and use it in GitHub Desktop.

Select an option

Save SanthoshVijayabaskar/7bae5042ed789f2bd152481a8c92056d to your computer and use it in GitHub Desktop.
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
class DummyTemplatePage extends React.Component {
constructor(props, context){
super(props,context);
}
render(){
return (
);
}
}
function mapStateToProps(state, ownProps){
return{
state: state
}
}
function mapDispatchToProps(dispatch){
return {
actions: bindActionCreators(actions, dispatch);
};
}
export default connect(mapStateToProps,mapDispatchToProps)(DummyTemplatePage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment