reca 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,6 @@ Created at the intersection of Functional style and OOP technologies. It is base
|
|
|
15
15
|
- [ReCA - React Clean Architecture state manager](#reca---react-clean-architecture-state-manager)
|
|
16
16
|
- [Table of Contents](#table-of-contents)
|
|
17
17
|
- [Features](#features)
|
|
18
|
-
- [Why not Redux or Flux?](#why-not-redux-or-flux)
|
|
19
18
|
- [Comparison with Other Libraries](#comparison-with-other-libraries)
|
|
20
19
|
- [Why Choose ReCA?](#why-choose-reca)
|
|
21
20
|
- [Installation](#installation)
|
|
@@ -45,27 +44,21 @@ Created at the intersection of Functional style and OOP technologies. It is base
|
|
|
45
44
|
- **Code Organization** - structures the code easily even for large enterprise applications,
|
|
46
45
|
- **Extra Small Size** - only 1kb of minified code.
|
|
47
46
|
|
|
48
|
-
## Why not Redux or Flux?
|
|
49
|
-
|
|
50
|
-
- **Monostore** - as the application grows, the cost of maintaining a monostore greatly exceeds the useful work.
|
|
51
|
-
- **Reducers** - a large number of reducers makes you spend a lot of time searching for the necessary function.
|
|
52
|
-
- **Architecture problem** - forces you to use tons of additional packages to solve problems, such as saga, thunk, toolkit and many others.
|
|
53
|
-
|
|
54
47
|
## Comparison with Other Libraries
|
|
55
48
|
|
|
56
|
-
| Feature | ReCA |
|
|
57
|
-
|
|
58
|
-
| **Bundle Size** | ~1KB | ~
|
|
59
|
-
| **Boilerplate** | Minimal |
|
|
60
|
-
| **Learning Curve** | Easy |
|
|
49
|
+
| Feature | ReCA | Zustand | MobX | Redux |
|
|
50
|
+
|---------|------|----------|------|-------|
|
|
51
|
+
| **Bundle Size** | ~1KB | ~1KB | ~16KB | ~8KB |
|
|
52
|
+
| **Boilerplate** | Minimal | Minimal | Medium | Heavy |
|
|
53
|
+
| **Learning Curve** | Easy | Easy | Medium | Steep |
|
|
61
54
|
| **TypeScript** | Built-in | Good | Good | Good |
|
|
62
|
-
| **Performance** | Excellent |
|
|
55
|
+
| **Performance** | Excellent | Excellent | Excellent | Good |
|
|
63
56
|
| **Dependency Injection** | ✅ Built-in | ❌ Manual | ❌ Manual | ❌ Manual |
|
|
64
|
-
| **Clean Architecture** | ✅ Native | ⚠️ Requires setup | ⚠️ Requires setup |
|
|
65
|
-
| **Microstores** | ✅ Yes |
|
|
57
|
+
| **Clean Architecture** | ✅ Native | ❌ Limited | ⚠️ Requires setup | ⚠️ Requires setup |
|
|
58
|
+
| **Microstores** | ✅ Yes | ✅ Yes | ✅ Yes | ❌ Monostore |
|
|
66
59
|
| **SSR Support** | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
|
|
67
60
|
| **Middleware** | Via DI | ✅ Yes | ❌ Limited | ✅ Yes |
|
|
68
|
-
| **Async Actions** | ✅ Native |
|
|
61
|
+
| **Async Actions** | ✅ Native | ✅ Native | ✅ Native | ⚠️ Requires thunk/saga |
|
|
69
62
|
|
|
70
63
|
### Why Choose ReCA?
|
|
71
64
|
|