With hooks you're still free to manage business logic elsewhere, it just means that you can trivially reuse them across your application without worrying about order-dependence. So I was able to write a hook that returned connection state, and then drove my views off of that reactively.
9 years later my new work involves some react (barely 15% of the job tbh) and I really don't hate it as much.
With React, data flows down from the top of the component hierarchy, always. And it doesn't render until all state changes have been made, so you only render after your data has reached consistency.
I am done with this thread.
Here is a random example[1] I pulled up of someone one thinking MVC is not unidirectional but MVVM is. I am not commenting on the correctness of this impression.
> MVVM is better than MVC/MVP because of its unidirectional data and dependency flow. Dependency is one way,...
[1] https://dev.to/vtsen/mvc-vs-mvp-vs-mvvm-design-patterns-443n....
But what happened instead is that people wrote the controller parts into React components as well. In some codebases there's a very clean separation - 'logic' components that handle and manipulate state, and simpler 'view' components that just take props and render something.
But I haven't yet seen a framework that uses React as just a view layer.