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?
I am using React-Router to handle all routing.
Here is what my App.js looks like now:
render() {
return (
<Router className="App">
<Header />
<NavigationBar />
<div id="container">
<Route path="/" exact component={LoginPage}/>
<Route path="/EventInfo" component={EventInfo}/>
<Route path="/RSVP" component={RSVP}/>
<Route path="/Attendance" component={Attendance}/>
<Route path="/Confirmation" component={Confirmation}/>
<Route path="/Contact" component={Contact}/>
<Route path="/Lodging" component={Lodging}/>
</div>
</Router>
);
};