Check out example codes for "asp.net mvc class="" inline select". It will help you in understanding the concepts better.

Code Example 1

<div @(condition ? "class=select error" : "class = select">
 </div>
 
 Razor will add the quotes for you (class = "select error").

Learn ReactJs, React Native from akashmittal.com