React-Redux

Redux

Redux 최신 공식 문서가 최고다

configureStore를 통해 store를 설정하면 redux-dev-tools 등이 자동으로 설정됨
Redux Slices
A "slice" is a collection of Redux reducer logic and actions for a single feature in your app
https://redux.js.org/tutorials/essentials/part-2-app-structure
Hook APIs
https://react-redux.js.org/api/hooks
React-Redux의 Hook을 사용하기
https://velog.io/@velopert/react-redux-hooks
localStorage의 setItem 등은 원칙적으론 Side-effect이므로, Pure function인 리덕스의 reducer에서 사용하면 안 됨
https://stackoverflow.com/questions/36580963/can-you-or-should-you-use-localstorage-in-reduxs-initial-state

 

댓글

댓글 본문
버전 관리
김시준
현재 버전
선택 버전
graphittie 자세히 보기