0
<Switch>
<Route path={Routes.HOME}>
                  <Home />
              </Route>
              <Route path={Routes.RECEPTIONHOME} >
                  <ReceptionHome/>
              </Route>
</Switch>

and calling of page code

<div class Name="button-container">
                          <Link to="/Security Page"> <button class Name="button1" >I am Security Person</button></Link>
                        </div>
                        <div class Name="button-container">
                       <Link to="/ReceptionHome" >
<button class Name="button1" >I am Reception Person</button></Link>
                        </div>

please any one have idea my SecurityPage is route succfully but my ReceptionHome not route

mayursinh
  • 1
  • 1
  • Why did you use router lower v6? but still if you want to use it then please share package.json to understand the dependencies version of code. – Varun Kaklia Oct 13 '22 at 02:27

0 Answers0