Redux1 Redux 세 가지 원칙 1. Single source of truth The state of your whole application is stored in an object tree within a single store. 어플리케이션 내의 state는 단일한 store안에 있는 객체 트리에 저장된다. - 서버에서 가져온 state를 클라이언트쪽에 나열하거나 흡수시킬때 별다른 추가적인 코딩 없이 쉽게 쓸 수있다. - 디버깅이 쉬워진다. - 개발 사이클이 더 빨라진다. (undo/redo 등의 조금 어려웠던 작업들이 간단하게 해결가능해진다.) console.log(store.getState()) /* Prints { visibilityFilter: 'SHOW_ALL', todos: [ { text: 'Consider using.. 2020. 2. 18. 이전 1 다음