title: Simulate click event on react element
body: <p>I'm trying to simulate a <code>.click()</code> <code>event</code> on a <a href="https://facebook.github.io/react/" rel="noreferrer">React</a> element but I can't figure out why it is not working (It's not reacting when I'm firing the <code>event</code>).</p>
  
  <p>I would like to post a Facebook comment using only JavaScript but I'm stuck at the first step (do a <code>.click()</code> on <code>div[class="UFIInputContainer"]</code> element).</p>
  
  <p>My code is:</p>
  
  <pre><code>document.querySelector('div[class="UFIInputContainer"]').click();
  </code></pre>
  
  <p>And here's the URL where I'm trying to do it: <a href="https://www.facebook.com/plugins/feedback.php?api_key=516792821822250&amp;channel_url=https%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FP5DLcu0KGJB.js%3Fversion%3D42%23cb%3Df32e78989ee3c64%26domain%3Dproductodelasemana.top%26origin%3Dhttps%253A%252F%252Fproductodelasemana.top%252Ff21b47c88d96f0c%26relation%3Dparent.parent&amp;colorscheme=light&amp;href=https%3A%2F%2Fproductodelasemana.top&amp;locale=en_US&amp;numposts=5&amp;sdk=joey&amp;skin=light&amp;version=v2.8&amp;width=100%25#" rel="noreferrer"><strong>https://www.facebook.com/plugins/feedback.php...</strong></a></p>
  
  <p>P.S. I'm not experienced with React and I don't know really if this is technically possible. It's possible?</p>
  
  <p>EDIT: I'm trying to do this from <code>Chrome DevTools Console</code>.</p>