리듀서를 스토어에 연결하고 Provider에 스토어를 연결했습니다.
그런 다음 Container에서 mapStateToProps를 선언하고 connect를 하였더니.
// 리듀서의 initialState
const initialState = Map({
list: List([])
});
// Container에 mapStateToProps
const mapStateToProps = (state) => {
return {
list: state.get("list"),
page: state.get("page"),
scrollLeft: state.get("scrollLeft"),
scrollTop: state.get("scrollTop")
}
};
mapStateToProps에서 stage.get이 에러가 나네요 ㅜ.ㅜ
combineReducers를 안하면 잘되구요…
음… 해답을 아시는 분이 있다면 조언좀 해주세요~