JSFiddle - React, Tailwind, and code Playground
HTML
Product price: $500
<br>
Total price: $500
<br>
<input type="button" onclick="change()" value="2
Qty">
<input type="button" class="mnozstvi_sleva" value="4
Qty">
<br>
Total <input type="text" id="count" value="1">