
리액트 기초/Firestore + Redux2021. 9. 1. 11:30Firestore & Redux - redux-thunk
미리 해야할 일1. Redux와 React 프로젝트 연결우선 아래 깃허브에서 Redux 모듈을 연결한 React 프로젝트를 설치하자.https://github.com/ejzl521/React_Redux-Router혹은 아래 코드를 붙여넣기하고 필요한 라이브러리를 설치하자redux/module/bucket.js리덕스 모듈// Actionconst LOAD = 'bucket/LOAD';const CREATE = 'bucket/CREATE';// initialState // 초기 상태값const initialState = {list: ["치킨 먹기", "컴퓨터 게임하기", "여행 가기"]};// Action Creatorsexport const loadBucket = (bucket) => { // 불러..