|
|
|
|
|
by bern4444
2017 days ago
|
|
> The effectful code shouldn't even be there. It should live separately from the render / view code If that's your preference React is probably the wrong tool to begin with. React is just the view in MVC. Plenty of frameworks exist to help build an MVC with react that provide their own structure and guidelines. React is incredibly flexible and can be used in many ways. All this shows is the need for strong architecture decisions and guidance because React is so hands off in making recomendations of how it should be used or what tools it should be used with. That's a strength. It absolutely requires more up front work on yours and mine part to construct an architecture that fits our needs, but it gives us the ability to completely tailor the solution which is the best part. |
|
> If that's your preference React is probably the wrong tool to begin with.
That’s... a strange take, considering that’s how almost everyone wrote React UIs before hooks.