More Readable Styling Markup with the join Expression
This Page
All Documentation
Markup can get messy when you specify the class names to apply based on the component attribute values. Try using a join expression for easier-to-read markup.
This example sets the class names based on the component attribute values. It’s readable, but the spaces between class names are easy to forget.
Try using a join expression instead for easier-to-read markup. This example join expression sets ' ' as the first argument so that you don’t have to specify it for each subsequent argument in the expression.