You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+122-7Lines changed: 122 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,30 @@
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)
### Advanced Example - Dependency Injection for Enterprise Applications
204
290
205
-
This example demonstrates the simplicity of the business logic and the simplified principles of code organization according to the Clean Architecture methodology. The example is simplified for readme, but following the same principles you can organize a full-fledged Clean Architecture. Through the service constructor, you can pass other DI dependencies, such as Repository, Provider, and others.
291
+
This example demonstrates how to build scalable enterprise applications using ReCA with Dependency Injection. It shows the simplicity of business logic organization following Clean Architecture principles.
206
292
207
-
```typescript
293
+
The example includes:
294
+
295
+
-**Service Layer** - encapsulates business logic and external API calls
296
+
-**Model Layer** - defines data structures
297
+
-**Store Layer** - manages state and coordinates services
298
+
-**Component Layer** - pure view logic
299
+
300
+
This architecture makes your code:
301
+
302
+
-**Testable** - easily mock services for unit tests
303
+
-**Maintainable** - clear separation of concerns
304
+
-**Scalable** - add new features without modifying existing code
305
+
-**Flexible** - swap implementations through DI (e.g., Repository, Provider, Logger)
0 commit comments