React Router Function Not Getting Props Codesandbox

React Router Function Not Getting Props Codesandbox