createClass = function(classes: string[]): string {
    return classes.filter(cls => cls).join(" ");
}
Create an HTML className based on a list of classes. In addition to joining
with spaces, we also remove empty classes.