If I had a development workflow that supports SCSS and uses bootstrap. I can place bootstrap tags two ways...
- Inside the HTML:
<div class="col-sm-3 offset-sm-9 col-xl-1 offset-xl-11">
- Part of the SCSS:
<div class="mymain">
with the following SCSS
.mymain { @extends .col-sm-3; @extends .offset-sm-9; @extends .col-xl-1; @extends .offset-xl-11; }
Personally my preference is the later since it refactors out the UI layout elements from the HTML/JSX code and debugging will give me the component name.
Although debugging will not give me the offsets and such plus making live changes is going to be more difficult.
What's the more established pattern for larger applications.