리덕스 모듈을 수정했으면 CounterContainer에서 호출하던 액션 생성 함수도 변경해 주세요.
container/CounterContainer.js
import React from 'react'; import { connect } from 'react-redux'; import { increaseAsync, decreaseAsync } from '../modules/counter'; import Counter from '../components/Counter'; const CounterContainer = ({ number, increaseAsync, decreaseAsync }) => { return ( <Counter number={number} onIncrease={increaseAsync} onDecrease={decreaseAsync} /> ); }; export default connect( state => ({ number: state.counter }), { increaseAsync, decreaseAsync } )(CounterContainer);