title: Timing accuracy in React
body: <p>I am considering using React to run behavioural studies on the web. Such studies require knowing exactly when elements such as images are displayed on screen, and being able to accurately specify the duration they are shown (eg via requestAnimationFrame). </p>
  
  <p>I would love to use React but I worry that it is not fit for my purpose given this from the official documentation:</p>
  
  <blockquote>
    <p>There is no guarantee of synchronous operation of calls to setState and calls may be batched for performance gains (<a href="https://facebook.github.io/react/docs/react-component.html#setstate" rel="nofollow noreferrer">source</a>)</p>
  </blockquote>
  
  <p>I appreciate your advice. </p>