how to pass an id to the route of a seprate file react

Solutions on MaxInterview for how to pass an id to the route of a seprate file react by the best coders in the world