Hacker News new | ask | show | jobs
by doublejosh 2283 days ago
Sorry to be unpleasant... but DUH. This was true long before React. It's a core idea in assembled layouts, that is to say all layouts.

Margins need to come from the assembling component, rather than the detail item. Spacing requires awareness of multiple elements, which you usually don't have internally.