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.

29 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 {
7 years ago
constructor(props) {
super(props);
}
7 years ago
render() {
const { state, actions } = this.props;
return (
<Menu {...actions} />
);
}
}
export default connect(state => ({
7 years ago
state: state
}), (dispatch) => ({
actions: bindActionCreators(menuActions, dispatch)
}))(MenuApp);