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