This uses the PWA Starter Kit as a starting point and then adds examples of various Redux middlewares by extending the base Redux counter example with an additional data fetch & rendering of that data.
The async-api branch contains examples of:
- Adding the async data fetch with redux-thunk
- Switching from redux-thunk to redux-saga
- Switching from redux-thunk to redux-observable
- Switching from redux-saga to redux-observable
- Switching from redux-observable to redux-saga
Also worth noting, the Shopping Cart example uses Reselect selector library for Redux which is worth learning.
To run these locally:
npm install
npm start
- View http://127.0.0.1:8081/view2 in your browser