import {connect} from "react-redux";
import {action1, action2} from "myActions";
const MyComponent = (props) => (
<div>
<button onClick={props.action1}>Do first action</button>
<button onClick={props.action2}>Do second action</button>
</div>
)
// Passing an object full of actions will automatically run each action
// through the bindActionCreators utility, and turn them into props
export default connect(null, {action1, action2})(MyComponent);