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 |
Tags
- 정렬
- 토이프로젝트
- 공부
- 코드업
- 협업
- Redux
- Java
- web
- react-redux
- Spring
- 분할메모리할당
- 타입스크립트
- 자료구조
- 리덕스장바구니
- 파이썬
- 백준
- 스프링
- Operating System
- OS
- react
- js to ts
- codeup
- 기초100제
- 일상
- C++
- 알고리즘
- error
- CPU 스케줄링
- 프로그래머스
- memory
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