How can I pass multiple value by select in reactjs
I need to pass multiple value by using onChange when I select the option, but I can not select single option . it select whole objects . Here is my code . const test = [{id:1, name:'test, value:{x:10}}] <Select showSearch style={{ width: 200 }} placeholder="Select a person" optionFilterProp="children" > {test.map(item =>( <Option value={item.id, item.value}>{item.name}</Option> ))} </Select> is there an alternative solution to fix this problem
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.