Have a task to create Select component that will write value to state when onChange, but the component accepts an array with data [{}] as input. But, p
onChange
[{}]