3 ms·
Other commenters have addressed ways to implement this. But ideally, instead of extracting that specific collection of classes out to a class, extract out the
by pdr2020 7y ago
Other commenters have addressed ways to implement this.
But ideally, instead of extracting that specific collection of classes out to a class, extract out the HTML fragment into it's own template (or into it's own React Component or insert framework component abstraction here).
The cleaner separation now is:
1. classes represent some atomic unit that enforces (for that unit) some design system specification
2. html fragments represent a specific implementation composed of those atomic units