I am new to react
. I am using react select
for the select.
Now, I have the following jsx
div className="col-md-4 d-flex align-items-center" style={borderClass}>
<label className="mb-0 font-weight-bold" style={labelFont}>
Technology
</label>
<Select
styles={styles}
options={this.props.technology}
placeholder="None Selected"
/>
</div>
const mapStateToProps = (state) => {
return {
technology : state.CreateJob.technology,
userCompany: state.CreateJob.userCompany
}
}
this is coming from the reducer as a prop. Now, the data I am getting is like ,
['a', 'b', 'c']
So, How can I use this as a option in the render . Can any one help me with this ? Thanks.