React DatePicker how to open datepicker on click of icon
<p>Trying to open datepicker on click of icon of react-datepicker component, I have gone through their docs and issues links but found that its not much useful.</p>

<pre><code>&lt;DatePicker
        {...startDateOpts}
        id='abc'
        maxDate={moment()}
        onChange={this.handleStartChange}
        placeholderText='Start Date'
        popoverAttachment={smallScreen ? 'bottom center' : undefined}
        popoverTargetAttachment={smallScreen ? 'top center' : undefined}
        popoverTargetOffset={smallScreen ? '0px 0px' : undefined}
      /&gt;
</code></pre>

<p><a href="https://i.stack.imgur.com/RMP9R.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RMP9R.png" alt="enter image description here"></a></p>

<p>I tried from <a href="https://hacker0x01.github.io/react-datepicker/" rel="noreferrer">React-datepicker docs link</a> but no luck.</p>