score:1

Accepted answer
  function App() {
      <>
       <BrowserRouter>
        <Header />
        <Switch>
         <Route exact path="/banner">
          <Banner />
         </Route>
         <Route exact path="/material">
          <Material />
         </Route>
         <Route exact path="/product">
          <Product />
         </Route>
         <Route exact path="/imprint">
          <Imprint />
         </Route>
        </Switch>
        <Final />
       </BrowserRouter>
      </>

score:1

 function App() {
      <Router> 
        <Header />        

        <Switch>
          <Route path='/' exact component={Home}/>
          <Route path="/imprint" exact component={Imprint} />
        </Switch> 
        
        <Footer/>
        </Router>
 }

Related Query

More Query from same tag