|
|
|
|
|
by gitgud
2471 days ago
|
|
Stateless components, or as I like to call them dumb components. We found it much easier to reason about logic in the code base with having many small dumb components, which didn't have any state or complex functionality. These would be controlled by a few smart parent components to coordinate them. The result was a lot cleaner. We implemented this on a Web client, but I think the concept would work well in any codebase.... dumb classes are easier to understand |
|
You mean like pure functions?
https://en.m.wikipedia.org/wiki/Pure_function