29d ago in Help
Route, Path, Element
I was curious how this works. In Cristians todo starter template in his route he put "TodoDetail" as his component to use but when you go to the todo page there is no component with that name.
here is the code snippet im talking about:
<Route path="/todo/:id" element={<TodoDetail />} />
and the page name that it directs you to is called Todo and not TodoDetail.
Can someone explain to me how this works?
4
8 comments
Ryan Berta
5
Route, Path, Element
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
powered by