I want to achive something like this: I will not show Header and Footer in my Login page but main layout will reamin the same. Kind of using different layouts between Routes? How can I achieve something like this?
my Code:
<Router history={history}>
<Header>
<Switch>
<Route component={Home} path="/" exact />
<Route path="/about" component={AboutPage} />
<Route path="/community" exact />
<Route path="/login" exact component={LoginPage} />
<Route path="/signup" exact component={LoginPage} />
<Route path="/members" component={Members} />
<Route component={NoMatch} />
</Switch>
</Footer>
</Router>