Check out example codes for "c# razor add disabled to button if". It will help you in understanding the concepts better.
Code Example 1
<input type="button" class="btnresetinvoice button" value="Reset"
data-invoiceid="@item.InvoiceId"
@{ if(item.PMApproved != true) {
@:disabled="disabled"
} }
/>
Learn ReactJs, React Native from akashmittal.com