일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- map
- recoil
- 무한 스크롤
- autosize
- 결정 알고리즘
- Jest
- async/await
- SSR
- React
- 리터럴 타입
- 공변성
- 반공변성
- 투포인터
- 이분 검색
- tailwind
- CORS
- app router
- 태그된 유니온
- 호이스팅
- CI/CD
- Cypress
- ESlint
- RTK Query
- Promise
- 인터섹션
- webpack
- TS
- dfs
- 타입 좁히기
- useAppDispatch
Archives
- Today
- Total
목록리덕스 파일 구조 (1)
짧은코딩

원본 파일 const { createStore } = require("redux"); const reducer = (prevState, action) => { switch (action.type) { case "LOG_IN": return { ...prevState, user: action.data, }; case "LOG_OUT": return { ...prevState, user: null, }; case "ADD_POST": return { ...prevState, posts: [...prevState.posts, action.data], }; default: return prevState; } }; const initialState = { user: { isLoggingIn: true, data:..
인프런, 유데미/Redux
2022. 9. 10. 22:46