I need to convert this props:
into this array:
this.setState({
locations: [
{ label: 'California', value: 'california' },
{ label: 'Nevada', value: 'nevada' },
]
});
originally i was using this plugin and wanted to replace its default values with my props but cant convert it.