A web developer who loves gaming, technology, metal, and other stuff. Currently at Ramsey Solutions. http://buddyreno.me
I jumped into a co-worker’s codebase recently and noticed that an is-IE class is being added to the html tag. I asked him what he was using to add the class and he showed me the following snippet.
Whenever I write styles for a js-interactive component, I typically add all my variant classes at the root level and use that to change all the child elements within the component.
<div class="Component is-active">