I am trying to figure out what this bit of code means:
<Routes>
<Route path="/" element={<Dashboard />}>
<Route
path="messages"
element={<DashboardMessages />}
/>
<Route path="tasks" element={<DashboardTasks />} />
</Route>
<Route path="about" element={<AboutPage />} />
</Routes>
https://reactrouter.com/docs/en/v6/components/route
If the location is /, then the rendered UI will be
<Dashboard />
While if the location is /messages, then the rendered UI will be
<Dashboard >
<DashboardMessages />
<Dashboard />
Same logic for /tasks and /about.
Is my understanding correct?