reca 2.4.0 → 2.4.2
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 -39
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,30 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
Created at the intersection of Functional style and OOP technologies. It is based on the simplicity of the functional style of the view, enriched with OOP technologies for writing business logic. Perfect for beginner developers and complex enterprise applications
|
|
12
12
|
|
|
13
|
-
## Table of Contents
|
|
14
|
-
|
|
15
|
-
- [ReCA - React Clean Architecture state manager](#reca---react-clean-architecture-state-manager)
|
|
16
|
-
- [Table of Contents](#table-of-contents)
|
|
17
|
-
- [Features](#features)
|
|
18
|
-
- [Why not Redux or Flux?](#why-not-redux-or-flux)
|
|
19
|
-
- [Comparison with Other Libraries](#comparison-with-other-libraries)
|
|
20
|
-
- [Why Choose ReCA?](#why-choose-reca)
|
|
21
|
-
- [Installation](#installation)
|
|
22
|
-
- [Using npm](#using-npm)
|
|
23
|
-
- [Using yarn](#using-yarn)
|
|
24
|
-
- [Using pnpm](#using-pnpm)
|
|
25
|
-
- [Setup](#setup)
|
|
26
|
-
- [Examples](#examples)
|
|
27
|
-
- [Quick Start - Counter Example](#quick-start---counter-example)
|
|
28
|
-
- [ToDo Example](#todo-example)
|
|
29
|
-
- [Example low-level Store](#example-low-level-store)
|
|
30
|
-
- [Advanced Example - Dependency Injection for Enterprise Applications](#advanced-example---dependency-injection-for-enterprise-applications)
|
|
31
|
-
- [Documentation and Resources](#documentation-and-resources)
|
|
32
|
-
- [Documentation](#documentation)
|
|
33
|
-
- [Community and Support](#community-and-support)
|
|
34
|
-
- [Contributing](#contributing)
|
|
35
|
-
- [License](#license)
|
|
36
|
-
|
|
37
13
|
## Features
|
|
38
14
|
|
|
39
15
|
- **Microstores** - calculations state of components don't affect to other components, small CPU usage for update states,
|
|
@@ -45,27 +21,21 @@ Created at the intersection of Functional style and OOP technologies. It is base
|
|
|
45
21
|
- **Code Organization** - structures the code easily even for large enterprise applications,
|
|
46
22
|
- **Extra Small Size** - only 1kb of minified code.
|
|
47
23
|
|
|
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
24
|
## Comparison with Other Libraries
|
|
55
25
|
|
|
56
|
-
| Feature | ReCA |
|
|
57
|
-
|
|
58
|
-
| **Bundle Size** | ~1KB | ~
|
|
59
|
-
| **Boilerplate** | Minimal |
|
|
60
|
-
| **Learning Curve** | Easy |
|
|
26
|
+
| Feature | ReCA | Zustand | MobX | Redux |
|
|
27
|
+
|---------|------|----------|------|-------|
|
|
28
|
+
| **Bundle Size** | ~1KB | ~1KB | ~16KB | ~8KB |
|
|
29
|
+
| **Boilerplate** | Minimal | Minimal | Medium | Heavy |
|
|
30
|
+
| **Learning Curve** | Easy | Easy | Medium | Steep |
|
|
61
31
|
| **TypeScript** | Built-in | Good | Good | Good |
|
|
62
|
-
| **Performance** | Excellent |
|
|
32
|
+
| **Performance** | Excellent | Excellent | Excellent | Good |
|
|
63
33
|
| **Dependency Injection** | ✅ Built-in | ❌ Manual | ❌ Manual | ❌ Manual |
|
|
64
|
-
| **Clean Architecture** | ✅ Native | ⚠️ Requires setup | ⚠️ Requires setup |
|
|
65
|
-
| **Microstores** | ✅ Yes |
|
|
34
|
+
| **Clean Architecture** | ✅ Native | ❌ Limited | ⚠️ Requires setup | ⚠️ Requires setup |
|
|
35
|
+
| **Microstores** | ✅ Yes | ✅ Yes | ✅ Yes | ❌ Monostore |
|
|
66
36
|
| **SSR Support** | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
|
|
67
37
|
| **Middleware** | Via DI | ✅ Yes | ❌ Limited | ✅ Yes |
|
|
68
|
-
| **Async Actions** | ✅ Native |
|
|
38
|
+
| **Async Actions** | ✅ Native | ✅ Native | ✅ Native | ⚠️ Requires thunk/saga |
|
|
69
39
|
|
|
70
40
|
### Why Choose ReCA?
|
|
71
41
|
|