title: Setting body background color in React
body: <p>I have a rather simple question about React, but I wanna see what the best practice is for this kind of situation.</p>
  
  <p>How do you change the body background color, according to the page you are in? Do you set a CSS rule for the body background color in a CSS file for each page and import it in the component? Will the above work or do I need to add a CSS class to the body tag using componentDidMount, and remove it in componentWillUnmout?</p>
  
  <p>Which one is the preferred way? I noticed that if you imported some CSS in one page, it will remain active even after you navigate to a new url. So, maybe I need to use componentDidMount/componentWillUnMount, is that correct?</p>