How to set the selected state of Select2 component in React?
<p>I have a React application that includes the npm package:</p>

<pre><code>import Select2 from 'react-select2-wrapper';
</code></pre>

<p>My Select2 component looks like this:</p>

<pre><code>&lt;Select2
    options={{
        minimumResultsForSearch: Infinity
    }}
    data={[
        { text: '...', id: "" },
        { text: 'Edit', id: "edit" },
        { text: 'Duplicate', id: "duplicate" }
    ]}
    onChange={this.executeSelectedOption.bind(this)}
 /&gt;
</code></pre>

<p>I want to click a button and have it change the selected value of the Select2 component - how do I do this?</p>