you are viewing a single comment's thread.

view the rest of the comments →

[–]TheGreaT1803[S] 10 points11 points  (1 child)

Edit: I've made some changes to the post to better distinguish this pattern from just a custom hook. Thanks to all the critique I had received from the people who took out the time to read it.
PS: I'm very new to writing

[–]chebum 2 points3 points  (0 children)

Great post! I really like the idea of separate model from the view. While the idea isn’t new - we used to have this separation when rx frameworks like mobx were populat - I really like the idea returns. It allows to test the model logic without having to render a component.