title: React "after render" code?
body: <p>I have an app where I need to set the height of an element (lets say "app-content") dynamically. It takes the height of the "chrome" of the app and subtracts it and then sets the height of the "app-content" to fit 100% within those constraints. This is super simple with vanilla JS, jQuery, or Backbone views, but I'm struggling to figure out what the right process would be for doing this in React?</p>
  
  <p>Below is an example component. I want to be able to set <code>app-content</code>'s height to be 100% of the window minus the size of the <code>ActionBar</code> and <code>BalanceBar</code>, but how do I know when everything is rendered and where would I put the calculation stuff in this React Class?</p>
  
  <pre><code>/** @jsx React.DOM */
  var List = require('../list');
  var ActionBar = require('../action-bar');
  var BalanceBar = require('../balance-bar');
  var Sidebar = require('../sidebar');
  var AppBase = React.createClass({
    render: function () {
      return (
        &lt;div className="wrapper"&gt;
          &lt;Sidebar /&gt;
          &lt;div className="inner-wrapper"&gt;
            &lt;ActionBar title="Title Here" /&gt;
            &lt;BalanceBar balance={balance} /&gt;
            &lt;div className="app-content"&gt;
              &lt;List items={items} /&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      );
    }
  });
  
  module.exports = AppBase;
  </code></pre>