Code below doesn\'t seems clean. Any suggestion to improve the code?
class=\
@{ var classAttr= needClass ? "class=\"class-name\"" : "" }
and then in the HTML