redux

· React.js
이 글은 super tokens 블로그의 "Why is redux state immutable?" 이라는 글을 한글로 번역하여 작성하였습니다. 원문 링크는 글 하단에 기재하였습니다. Redux가 올바르게 동작하기 위해서 state는 불변(immutable) 객체여야 합니다. 이것은 우리가 redux state를 업데이트할 때마다, 전체 state의 복제본을 생성하고 변경하기 원하는 필드를 변경해야 한다는 것을 의미합니다. 코드로 보면 아래와 같습니다. let newState = { ...oldState, field1: { ...oldState.field1, field2: 'some new value' }, } 위 코드에서, 우리는 oldState의 field2 값을 새로운 state를 생성하고 field..
· React.js
이 글은 저자의 허락을 받고 "State Management Battle in React 2021: Hooks, Redux, and Recoil" 이란 제목의 글을 번역하여 작성한 글입니다. 원문 링크 : https://dev.to/workshub/state-management-battle-in-react-2021-hooks-redux-and-recoil-2am0 State Management Battle in React 2021: Hooks, Redux, and Recoil Introduction: Over the years, the massive growth of React.JS has given birth to different... dev.to 소개 수 년간 리액트의 거대한 성장은 무엇보다도 다양..
yeo311
'redux' 태그의 글 목록