by neya · 6y ago · 0 comments
<div class="margin-10">..</div>
<div class="margin-20">..</div>
<div class="margin-30">..</div>
is MUCH cleaner than: <div space={3}>..</div>
<div space={4}>..</div>
The difference being, first of all, I don't need to dig into the source to see what `space` does. Next, appearance layer is tied to CSS and the JS takes care of the rest of the structure of the component.