Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.04 KB

component.md

File metadata and controls

18 lines (12 loc) · 1.04 KB

Component

Component is the encapsulation of view presentation and logic functions. For the moment, from the perspective of Redux, we divide the component into state-manage functions (Reducers) and others. Looking to the future, from the perspective of UI-Automation, we divide the component into presentations and others.

Combining the above two perspectives, we got the three parts of View, SideEffect, and Reducer, which are called the three factors of the component.

We use explicit configuration to complete the registration of components and adapters on which large component depend. This dependency configuration is called Dependencies.

So with this formula: Component = View + Effect(Optional) + Reducer(Optional) + Dependencies(Optional)

Division: From the perspective of the component

Concentration: From the perspective of the Store