How to manually trigger click event in ReactJS?
<p>How can I manually trigger a click event in <strong>ReactJS</strong>?
When a user clicks on element1, I want to automatically trigger a click on the <code>input</code> tag.</p>

<pre class="lang-html prettyprint-override"><code>&lt;div className="div-margins logoContainer"&gt;
  &lt;div id="element1" className="content" onClick={this.uploadLogoIcon}&gt;
    &lt;div className="logoBlank" /&gt;
  &lt;/div&gt;
  &lt;input accept="image/*" type="file" className="hide"/&gt;
&lt;/div&gt;
</code></pre>