Can anybody help me why i am getting this error? I have tried every solution available on stackoverflow but I am unable to solve it!
my element for which i am getting this error is:
<input
className="form-control"
value={ selectedCustomer.country ? selectedCustomer.country.label : ""}
onChange={e =>
setSelectedCustomer({
...selectedCustomer,
country: {
...selectedCustomer.country,
label: e.target.value,
},
})
}
/>