title: How to remove HTML element from DOM with React
body: <p>I have a loader set up in a div that I want to remove once a certain component is loaded by react. This div exists in my index.html file out side of my components. The code for my div is:</p>
  
  <pre><code>&lt;div class="loaderBackground"&gt;
     &lt;div class="loader"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried using refs, but everything I have found seems to imply that the element would need to be in a component, which I would like to avoid. </p>
  
  <p>Is it possible to remove the element without putting it in a component or do I have to fit in my components somewhere?</p>