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 | 31 |
Tags
- Redux
- react-redux
- 스프링
- 알고리즘
- Spring
- 타입스크립트
- 리덕스장바구니
- Operating System
- react
- 토이프로젝트
- 백준
- 공부
- 자료구조
- 코드업
- Java
- OS
- CPU 스케줄링
- js to ts
- 협업
- web
- error
- 기초100제
- C++
- memory
- codeup
- 분할메모리할당
- 프로그래머스
- 파이썬
- 정렬
- 일상
Archives
- Today
- Total
목록장바구니수량변경 (1)
감자튀김 공장🍟
[React] Redux 장바구니 수량 변경1 (최종)
폴더 구조 src | |- store | |- actions || ||- index.js | |- reducers | |- cartReducer.js |- index.js store/actions/index.js export const addCart = (item) => { return { type: 'ADD_ITEM', payload: item, }; }; export const deleteCart = (item) => { return { type: 'DELETE_ITEM', payload: item, }; }; export const increment = (item) => { return { type: 'INCREMENT', payload: item, }; }; export const decremen..
Study/React
2021. 3. 29. 14:31