0

I am making a simple React based site and want the landing page to not have the header and footer visible. Just wondering how to go about that?

Here is the code for my router:

  <Router>
    <div className="RSMS">
    <Header />
    <div className="container">
      <Routes>
        <Route path="/" element={<Landing />} />
        <Route path="/main" element={<Main />} />
        <Route path="/about" element={<About />} />
        <Route path="/partners" element={<Partners />} />
        <Route path="/products" element={<Products />} />
        {/* <Route path="/projects/:id" element={<Project />} /> */}
        <Route path="contact" element={<Contact />} />
        <Route path="*" element={<NotFound />} />
      </Routes>
    </div>
    <Footer />

    </div>
  </Router>
</>

);

sashdc
  • 1
  • 1
    Yes, thank you! tried it before but clearly did something wrong then. Worked a treat this time. Thanks. – sashdc Jan 20 '23 at 14:25

0 Answers0