Check out example codes for "mvc dynamic css". It will help you in understanding the concepts better.

Code Example 1

<style>
    div.col-md-4 {
       background-color: @Model.BGColor;
       text-decoration: @Model.TextDec;
       border-style: @Model.BRDStyle;
       border-width: @Model.BRDWidth;
     }
</style>

Learn ReactJs, React Native from akashmittal.com