React Multi Select Dropdown using React-Select Example

import React, { Component } from ‘react’;
import Select from ‘react-select’;

class MultiSelectDropdown extends Component {
constructor(props) {
super(props);
this.state = {
selectedOption: null,
};
}

handleChange = (selectedOption) => {
this.setState({ selectedOption });
console.log(`Option selected:`, selectedOption);
}

render() {
const { selectedOption } = this.state;

const options = [
{ value: ‘chocolate’, label: ‘Chocolate’ },
{ value: ‘strawberry’, label: ‘Strawberry’ },
{ value: ‘vanilla’, label: ‘Vanilla’ }
];

return (