JSFiddle - React, Tailwind, and code Playground
HTML
<div class="tab">
<button>My Button</button>
<button class="active">button 2</button>
</div>
CSS
.tab {
background-color: red;
}
.tab, button.active {
background-color: blue;
}