You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
545 B

'use strict';
import React, {Component} from 'react';
import {bindActionCreators} from 'redux';
import Menu from '../components/menu';
import * as menuActions from '../actions/menuActions';
import { connect } from 'react-redux';
class MenuApp extends Component {
constructor(props) {
super(props);
}
render() {
const { state, actions } = this.props;
return (
<Menu {...actions} />
);
}
}
export default connect(state => ({
state: state
}), (dispatch) => ({
actions: bindActionCreators(menuActions, dispatch)
}))(MenuApp);