title: Target and hide element in the DOM using react
body: <p>I currently using a component that I have downloaded called 'big calendar' for React. I have stylised it the way I like it to. The big calendar has a toggle button for month, day, and week. I want to hide an element when the "day" button is selected. The span class I would like to hide is 'rbc-toolbar-label'. Any ideas how this can be achieved?</p>
  
  <p>current code at the moment (tried but errors):</p>
  
  <pre><code>    if(selectedViewType=='day'){
     //document.getElementById('rbc-toolbar-label').style.display = 'none'
    this.refs.rbc-toolbar-label.setAttribute('display', 'none')
  }
  </code></pre>