According to React Router Doc, you can spread routeProps to make them available to your rendered Component, code below works as I expected: users will see
you can spread routeProps to make them available to your rendered Component