Check out example codes for "MVC creating a counter for products". It will help you in understanding the concepts better.

Code Example 1

@model EmployeeModel
   <div>
        <!--additional summary is displayed here-->
        <label>Available:</label>@Model.Available
        <label>Unavailable:</label>@Model.UnAvailable
        <label>Away:</label>@Model.Away
        <label>On Leave:</label>@Model.OnLeave
   </div>

Learn ReactJs, React Native from akashmittal.com