To demonstrate all kinds of ways to implement async with React & Redux.
If you like this repository, please ⭐ it and help to spread the word! ❤️
- Writing Async Code Inline
- Extracting Async Action Creator
- Use Redux Thunk
- Use Redux Saga
- Use Redux Logic
- 🍴 Fork this project and submit a PR.
- 👉 creating an issue.
In each demo project, we try to implement a notification feature:
- Click buttons to show notifications.
- Each notification auto dismiss after 5 seconds.
- Multiple notifications are allowed simultaneously.
This repo is inspired by this answer on stackoverflow.
The accepted answer is awesome.
Once again Dan Abramov shows how thoughtful the Redux design choices are, and how he excels in explaining them.
But there is something missing:
- No runnable sample projects, just some code snippets.
- No sample code for other alternatives, such as:
This repo is trying to add the missing things:
- Runnable projects. You can download and run them without modification.
- Provide sample code for more alternatives:
- Redux Saga
- Redux Logic
- ...
Take Writing Async Code Inline for example:
git clone git@github.com:tylerlong/hello-async.git
cd hello-async/async-code-inline
yarn install
yarn start