redux immer (1) 썸네일형 리스트형 [React] Redux와 Redux Toolkit 비교 및 구현 방법 1. Redux 구현 방법 npm i redux react-redux인스톨 후 사용 기존 Redux의 특징액션 타입을 문자열로 직접 정의액션 생성자를 별도로 만들어야 함불변성을 직접 관리해야 함 (새로운 객체를 반환)모든 리듀서 로직을 수동으로 작성보일러플레이트 코드가 많음// /store/index.jsimport { createStore } from 'redux'// 초기 상태const initialState = { counter: 0, showCounter: true}// Action Typesexport const INCREMENT = 'INCREMENT'export const DECREMENT = 'DECREMENT'export const INCREASE = 'INCREASE'export.. 이전 1 다음