What I did.
<span className="status">
{isOnline}?{styles.online}: {styles.offline}
</span>
Getting a data from JSON. Need to set a specific styling depending on the value
what i have in CSS module:
.online {
border: 2px solid green;
}
.offline {
border: 2px solid red;
}
Mistake: instead of getting the class value, I am getting the classname