home/user/:id/friends/:id
function SomeComponent() {
const { id } = useParams();
}
Which id will be used here? There are name conflicts.
home/user/:id/friends/:id
function SomeComponent() {
const { id } = useParams();
}
Which id will be used here? There are name conflicts.
Copyright © 2021 Jogjafile Inc.
The last parameter of the path is the value that any component will see.
This is trivial to test.
Example:
Don't use the same path parameter twice in the same path string per route.