xxxxxxxxxx
<h1 class={isLoggedin ? "active" : "disabled"}>HELLO WORLD</h1>
xxxxxxxxxx
// Get the element you want to add a class to
const element = document.getElementById('your-element-id');
// Add a class to the element
element.classList.add('your-class-name');