title: Only Display Component for Some Routes - React
body: <p>I am developing a website in React with a login interface. The website displays a custom Navigation component, however I don't want it to display on the home route (i.e. the login page), but from what I understand, static components don't re-render on route changes, is that accurate?</p>
  
  <p>I am using React-Router to handle all routing.</p>
  
  <p>Here is what my App.js looks like now:</p>
  
  <pre><code>render() {
     return (
         &lt;Router className="App"&gt;
            &lt;Header /&gt;
            &lt;NavigationBar /&gt;
            &lt;div id="container"&gt;
            &lt;Route path="/" exact component={LoginPage}/&gt;
            &lt;Route path="/EventInfo" component={EventInfo}/&gt;
            &lt;Route path="/RSVP" component={RSVP}/&gt;
            &lt;Route path="/Attendance" component={Attendance}/&gt;
            &lt;Route path="/Confirmation" component={Confirmation}/&gt;
            &lt;Route path="/Contact" component={Contact}/&gt;
            &lt;Route path="/Lodging" component={Lodging}/&gt;
          &lt;/div&gt;
       &lt;/Router&gt;
     );
  };
  </code></pre>