The value will always be of type string. So you need to cast it as a number. onChange={(e) => setQty(Number(e.target.value))}.
確定! 回上一頁