Skip to content

Commit 45571ed

Browse files
authored
Update readme
1 parent f4231bb commit 45571ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ demonstrate.
130130

131131
### Component Structure <a name="component-structure"></a>
132132

133-
A component always consists of at least four classes: a `Component`, a `ComponentView`, a `ComponentViewModel`
134-
and `ComponentMediator`:
133+
A component, as a rule, consists of the following classes: `Component` (with an inner `Mediator` implementation),
134+
`ComponentView`, `ComponentViewModel`, and `ComponentMediator`:
135135

136-
<img width="1013" height="460" alt="Screenshot from 2025-12-19 17-19-38" src="https://github.com/user-attachments/assets/00bbbb5e-9092-4752-8954-c9b8da184ca3" />
136+
<img width="1004" height="446" alt="PatternFX" src="https://github.com/user-attachments/assets/e205c4a9-43ab-43b2-8cf0-2ac11c4a9af4" />
137137

138138
A natural question might arise: why is there no `Model` in the component, given that
139139
the pattern is called MVVM? Firstly, a component is a building block for constructing a user interface, which might

0 commit comments

Comments
 (0)