This example demonstrates how to use the
<Route> elements. This is mainly a stylistic preference that may make more sense in some scenarios, depending on the data structures you're working with to define your routes.
One interesting thing to note is that even if you don't use this hook directly,
<Routes> uses it internally. So either way you're using the exact same code path!
Open this example on StackBlitz: