|
|
|
|
|
by crimsonalucard
4055 days ago
|
|
I've never used react but from what I read it's a more intuitive organization of components. The separation of the view and logic is an arbitrary separation that isn't always efficient. It's like owning a bunch of power tools and organizing by color instead of by function. Templates have components like search bars and login forms and they have logic related to those components. Why should component logic and template code be separated when both the logic and template components serve the same function? Code should be organized by segregating things into widgets. This, to me, makes more sense. I think the only thing missing from React is the ability to incorporate local css styles into the widget. Again like I said if there are styles associated exclusively with a widget, there's no point in segregating styles into some separate css file. Logic, structure, and style should be unified and organized by function, not by category. |
|