I have different routes for different pages.
<Routes>
<Route path="/"/>
<Route path='/app' element={home}/>
</Routes>
How to redirect / into /app in the new version of react router?
I have different routes for different pages.
<Routes>
<Route path="/"/>
<Route path='/app' element={home}/>
</Routes>
How to redirect / into /app in the new version of react router?
Copyright © 2021 Jogjafile Inc.
you can do as shown below