본문 바로가기

뉴히의 개발 로그

검색하기
뉴히의 개발 로그
프로필사진 뉴히

  • 분류 전체보기 (142)
    • 개발일지 (101)
      • TIL (85)
      • WIL (15)
      • KPT (1)
    • HTML&CSS (0)
    • Javascript (5)
    • React (4)
    • Redux Tookit (1)
    • Supabase (4)
    • Git (6)
    • Style (1)
    • CS (6)
    • Algorithm (6)
    • TIP (6)
Guestbook
«   2025/05   »
일 월 화 수 목 금 토
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 31
Archives
Today
Total
Recent Posts
Recent Comments
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Redux Tookit (1)

뉴히의 개발 로그

[Redux Toolkit] 설치 및 환경 설정

리덕스 설치 yarn add react-redux @reduxjs/toolkit store 구성 createStrore -> configureStore 사용 const store = createStore({rootReducer}); 이렇게 사용했었는데 const store = configureStore({ reducer: { key:value, } }) action value, action creator, reducer 를 한번에 ! createSlice(); const counterSlice = createSlice({ name: '', initialState, reducers:{ key : value // value 에는 함수 addNum : (state)=>{ // 액션크리에이터 : 리듀서()=>{..

Redux Tookit 2023. 10. 3. 17:48
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바