I have the following:
The problem with using
is if you have a different URL, say /indexDashboard
and the user hits refresh or gets a URL sent to them, the user will be redirected to /searchDashboard
anyway.
If you wan't users to be able to refresh the site or send URLs use this:
(
)}/>
Use this if searchDashboard
is behind login:
(
loggedIn ? (
) : (
)
)}/>