title: Manipulate the <html> or <body> tag in React
body: <p>What is the best way to manipulate the <code>&lt;html&gt;</code> or <code>&lt;body&gt;</code> tags in React? </p>
  
  <p>For example, dynamically setting 'lang' attribute or change classes? </p>
  
  <pre><code>&lt;html lang="en" class="ltr"&gt;
  </code></pre>
  
  <p>I could do that using raw DOM manipulation. But is this the right way?</p>