title: Force a re-render (update the state and update the DOM) immediately with react.js
body: <p>I realize that calling <code>setState</code> does not update <code>this.state</code> immediately, nor does it immediately call <code>render</code> and refresh the DOM. The docs say</p>
  
  <blockquote>
    <p>setState() does not immediately mutate this.state but creates a pending state transition. Accessing this.state after calling this method can potentially return the existing value.</p>
    
    <p>There is no guarantee of synchronous operation of calls to setState and calls may be batched for performance gains.</p>
  </blockquote>
  
  <p>I would like to be able to force a "state transition" like this at any point. This seems like it ought to be a fairly natural operation, but I can't find any mention of it in the docs. Is there a way to do it?</p>