import React from 'react';

function PageNotFound(props) {
  return (
    <p>
      Page not found - the path did not match any react-router routes.
    </p>
  );
}

export default PageNotFound;

import React from 'react';

function PageNotFound({ location }) {
  return (
    <p>
      Page not found - the path, {location.pathname}, did not match any
      React Router routes.
    </p>
  );
}

export default PageNotFound;

Add pathname to page not found
Add pathname to page not found
