I\'m trying to update a state by onChange event in select element. what am i missing in the update function?
My code:
const selectData = [{"label&