title: When, where and how to add class to the document.body when using React.js
body: <p>Currently I am doing this, but this is not the react.js way, right? Is render() the right place? What is the alternative? </p>
  
  <pre><code>  var App = React.createClass({
      render: function() {
        if (this.state.touchMode === 2) {
            $('body').addClass('touchMode');
        }
  
        return (&lt;div&gt; etc /div&gt;)
      }
    )}
  </code></pre>