Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aygunbyr/redux-demo
Redux Tutorial
https://github.com/aygunbyr/redux-demo
immer redux redux-thunk
Last synced: about 1 month ago
JSON representation
Redux Tutorial
- Host: GitHub
- URL: https://github.com/aygunbyr/redux-demo
- Owner: aygunbyr
- Created: 2023-10-05T09:53:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-05T12:12:21.000Z (over 1 year ago)
- Last Synced: 2024-01-27T12:12:17.276Z (12 months ago)
- Topics: immer, redux, redux-thunk
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redux Demo
## Three Core Principles
### First Principle
The global state of your application is stored as an object inside a single store.
### Second Principle
The only way to change the state is to dispatch an action, an object that describes what happened
### Third Principle
To specify how the state tree is updated based on actions, you write pure reducers
## Middleware
Is the suggested way to extend Redux with custom functionality
Provides a third-party extension point between dispatching an action, and the moment it reaches the reducer
Use middleware for logging, crash reporting, performing asynchronous tasks etc