Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Spring
- component
- go
- 웹애플리케이션서버
- 티스토리챌린지
- springboot
- javascript
- JavaSpring
- typescript
- 오블완
- css
- golang
- java
- backend
- ReactHooks
- Chakra
- JPA
- Gin
- satisfiles
- frontend
- RTK
- test
- storybook
- React
- hook
- Redux
- tanstackquery
- designpatterns
- react-hook-form
Archives
- Today
- Total
목록Redux-toolkit (1)
bkdragon's log
[Redux] Redux Toolkit
Redux Toolkit Redux를 편하게 사용할 수 있는 도구이다. Redux의 보일러 플레이트 코드를 줄이고 immer, reselect, redux-thunk 등의 부가 라이브러리를 통해 편의성을 증가시켰다. 우선 얼마나 코드가 줄어드는지 확인 해보자. 기존 코드 oldCounter.ts // 액션 타입에 들어갈 값 const INCREASE = 'counter/INCREASE' as const; const DECREASE = 'counter/DECREASE' as const; const INCREASE_BY = 'counter/INCREASE_BY' as const; // 액션 생성 함수 export const increase = () => ({ type: INCREASE, }); export ..
concept
2023. 7. 27. 17:30