Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billxsheng/stores
ngrx/rxjs + redux practice
https://github.com/billxsheng/stores
Last synced: 1 day ago
JSON representation
ngrx/rxjs + redux practice
- Host: GitHub
- URL: https://github.com/billxsheng/stores
- Owner: billxsheng
- Created: 2019-02-26T17:30:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T16:55:49.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T05:26:27.058Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.79 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stores
A repo to explore the concept of stores, specifically Redux.## Basics
Use stores when
- single-responsibility rule cannot be support
- this rule says that each module, class, or template has responsibility for a single function
- extraneoous props is solved
- props are passed within components where they aren't used
- you have reasonable amounts of data changing over time
- you need a single source of truth for your state
- you find that keeping all your state in a top-level component is not sufficient
## 3 Principles
1. 1 Store
2. Store is read-only
3. Stores are mutated with pure functions![alt text](https://cdn-images-1.medium.com/max/2560/1*M9d5RTuCdIQUhJuuJY10sw.png)