I'm creating a solution using a react-select and that a select should contain only the options it does not contain in the other. Ex
import React from 'react'
import Select from 'react-select'
const list = [
{ label: 'foo', value: 1 },
{ label: 'bar', value: 2 },
{ label: 'bin', value: 3 },
]
export default Test extends React.Component {
render = () => (
<>
<Select ref="a" options={list} />
<Select ref="b" options={list} filterOption={o => /* devo omitir "a" */} />
</>
)
}
What do I need to do to have a <Select ref="b" /> filtered by the value of another <Select ref="a" /> ?