3 ms·
Without arguing one way or the other: - Traditional SoC: template, styling, and logic for my app are separated - React/ractive/vue/preact SoC: parts of my app
by nailer 9y ago
Without arguing one way or the other:
- Traditional SoC: template, styling, and logic for my app are separated
- React/ractive/vue/preact SoC: parts of my app - login boxes, payment areas, order displays - are separated. They may further be separated by template, styling, and logic or not.
You're slicing something vertically vs horizontally.
In practice I prefer one of these but saying which one wouldn't help illustrate the concept.
- mohaine 9y ago> Traditional SoC: template, styling, and logic for my app are separated No, they are not. There is no real difference (other then syntax) between { rows.map(r=>(<Row data={r} />)) } and <div ng-repeat="r in rows"><Row data={{n}}/></div> These are both logic that have to be run to display your page. The only real difference is that with JSX, it is easy and powerful enough to use that you could stick some non-display logic in there. Easy and powerful should not be an argument against it.