Pretend I have an element that I wish to give a literal class, such as:
<p class="slds-text-title">My Title</p>
But I also have a dynamically determined class I wish to add, which I would normally do as:
<p class={dynamicClassVariable}>My Title</p>
Is there a way to add both to a single element in the HTML? The following is invalid:
<p class="slds-text-title {dynamicClassVariable}">My Title</p>
The only other way I can think of is to move my literal class name to the JavaScript and append it to the dynamic value, but I would rather not have to move all literal class names to the JavaScript every time I have a dynamic style to apply.