Great, so we both on the same page in regard to the principle of components' responsibility boundary.

Now it might be your turn to explain more about why we *have to* do it with pure CSS (and with margin)? Does it sound very dogmatic? Why we can't rethink if it is the correct / best way to represent spacing *between* elements?

The linked articles on the bottom of the story should already prove that empty divs are harmless, and I found many frameworks / libraries already adopted this pattern / idea (will update the story and list them on the…

Thor Chen

Passionate JS/TS Developer with a Fullstack Background

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store