우사미가 공부하는 공간
본문 바로가기

우사미 코딩

검색하기
우사미 코딩
프로필사진 맑은 눈의 우사미

  • 분류 전체보기 (94)
    • Programming (C++) (18)
      • C++ (4)
      • C++ 자료구조 (7)
      • OpenCV (0)
      • UE5.0 (2)
      • XCode, SwiftUI (5)
    • MySQL (5)
    • Leetcode (25)
    • React (38)
    • Node.js (5)
    • QT - GUI (0)
    • 자료구조 (Data Structure) (0)
    • 알고리즘 (Algorithm) (0)
    • Web hosting (0)
    • Git (0)
    • ChatGPT (1)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
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
Tags
  • nodeJS
  • Callback
  • priority_queue
  • queue
  • MySQL
  • count
  • component
  • leetcode
  • css
  • JSX
  • DP
  • Context
  • c++
  • route
  • BinaryTree
  • server
  • axios
  • array
  • Navigation
  • UE5
  • 비트연산
  • bit
  • treenode
  • React
  • map
  • state
  • event
  • routes
  • node.js
  • Props
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Redux (1)

우사미 코딩

[React] extraReducer

현재 사용하고 있는 라이브러리 - react-redux, immer, @reduxjs/toolkit add car form에 데이터를 입력하고 submit하면 carList에 추가하고 form의 textinput을 비워주고 싶다면? formSlice.fs에서 extraReducers로 carsSlice.jfs의 addCar와 연결해주면 된다 addCar가 호출한다면 폼을 비워주라는거임 import {createSlice} from '@reduxjs/toolkit'; import { addCar } from './carsSlice'; const formSlice = createSlice({ name:'form', initialState:{ name:'', cost:0 }, reducers:{ changeN..

React 2023. 7. 5. 13:43
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바

반응형