Too Long; Didn't Read
Typically, domain models and UI views are completely separated. But now that we have functional UI libraries (e.g., React with hooks), wouldn't it be possible to gather everything together, and implement the views as methods of the models they represent? We would separate the view from the model like the following: To render a UserView, we would do: The more verbose approach brings benefits? No matter how much I scratch my head, I don't see any. The code is just more scattered, but logically, it is not.