title: Prevent component render in specific page react-router
body: <p>The 'navbar' and 'footer' gets rendered on every component's page. Is there an way to prevent rendering 'footer' in the 'user' component?</p>
  <blockquote>
  <p>App.js</p>
  </blockquote>
  <pre><code>   &lt;Router&gt;
      &lt;Route&gt;
        &lt;Navbar /&gt;
        &lt;Switch&gt;
          &lt;Route path='/' exact component={Home} /&gt;
          &lt;Route path='/About' exact component={About} /&gt;
        &lt;/Switch&gt;
        &lt;Footer /&gt;
      &lt;/Route&gt;
  
      &lt;Route&gt;
        &lt;Route path='/user' component={User} /&gt;
      &lt;/Route&gt;
  
      &lt;Route path='*' component={NotFound} /&gt;
    &lt;/Router&gt;
  </code></pre>