News for hackers. Stuff that matters.
Re:Margin considered harmful by doublejosh on Tuesday March 24, 2020 @03:06PM (#22677819)
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.

There are no comments on this comment yet.