I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data?
// initial state set to { counter: 0 } store.subscribe(() => console.log('new state is', store.getState()) ) store.dispatch({ type: 'INCREMENT' }) // new state is { counter: 1 }
// initial state set to { counter: 0 } store.subscribe(() => console.log('new state is', store.getState()) ) store.dispatch({ type: 'INCREMENT' }) // new state is { counter: 1 } store.dispatch({ type: 'DECREMENT' }) // new state is { counter: 0 }
// initial state set to { counter: 0 } store.subscribe(() => console.log('new state is', store.getState()) ) store.dispatch({ type: 'INCREMENT' }) // new state is { counter: 1 } store.dispatch({ type: 'DECREMENT' }) // new state is { counter: 0 } store.dispatch({ type: ‘INCREMENT_BY', payload: 3}) // new state is { counter: 3 }
work dependencies — actions and store logic — data loading and mutation state stateless (pure) stateful Presentational and Container Components by Dan Abramov
work dependencies — actions and store logic — data loading and mutation state stateless (pure) stateful Presentational and Container Components by Dan Abramov visual interaction
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data?
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ⛔
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ⛔
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ✅ ⛔
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ✅ ✅ ⛔
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ✅ ✅ ✅ ⛔
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ✅ ✅ ⛔ ✅ ✅
I click here business logic how do we change data Framework-agnostic Webapps routes what pages do we have, when do we navigate between pages. talking to a server get, store and update data. data validation what is valid data? what is invalid data? ✅ ✅ ✅ ✅ ⛔
Course by Dan Abramov Building React Applications with Idiomatic Redux by Dan Abramov Build Redux Applications with Angular2, RxJS, and ngrx/store by John Lindquist Vuex — Vue.js State Management Pattern (inspired by redux)