본문 바로가기

bkdragon's log

검색하기
bkdragon's log
프로필사진 bkdragon

  • 분류 전체보기 (91)
    • Typescript (14)
    • React (32)
    • Java Spring (5)
    • Flutter (0)
    • concept (22)
    • Thinking (2)
    • Error (1)
    • UI UX (7)
    • golang (7)
    • 이펙티브 타입스크립트 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
  • google
  • typescript
  • 오블완
  • css
  • golang
  • java
  • backend
  • ReactHooks
  • Chakra
  • JPA
  • Gin
  • satisfiles
  • frontend
  • RTK
  • test
  • storybook
  • React
  • hook
  • Redux
  • tanstackquery
  • designpatterns
  • react-hook-form
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바