4 ms·
Interesting that in PHP days, mixing logic and markup was taboo, and now it's all the rage.
by skocznymroczny 7y ago
Interesting that in PHP days, mixing logic and markup was taboo, and now it's all the rage.
- madeofpalk 7y agoVery specifically, this is not mixing "logic and markup" in the way that was taboo. This is all UI logic. Should a button be displayed or not. How large should this rectangle be. React encourages you to place that logic close to where it's used so it's easier to understand. The line React devs has used is when people look at JSX and shout "separation of concerns", what they're really grasping at is "separation of languages".