const [value, setValue] = useState("")
const [qtys, setQtys] = useState([])
function handleQtyOnChange(e, row) {
// not error
setQtys((prev) => [
...prev,
{ sku: row.sku, maxQuantity: e.target.value },
])
setValue(e.target.value)
}
const [value, setValue] = useState("")
const [qtys, setQtys] = useState([])
function handleQtyOnChange(e, row) {
// error
setValue(e.target.value)
setQtys((prev) => [
...prev,
{ sku: row.sku, maxQuantity: e.target.value },
])
}