Non-index routes may have children, but cannot have index set to true.
index
true
Optional
Child Route objects.
Whether this is an index route - must be false or undefined on non-index routes.
false
Non-index routes may have children, but cannot have
indexset totrue.