import React from "react";

class NotFoundPage extends React.Component {

  render() {
    return <h1>Page not found</h1>;
  }

}

export default NotFoundPage;

import React from "react";
import FormattedMessage from "../utils/FormattedMessage";

class NotFoundPage extends React.Component {

  render() {
    return (
      <div>
        <FormattedMessage message="meta.notFoundTitle" />
      </div>
    );
  }

}

export default NotFoundPage;

Use externalized message for "Page not found"
Use externalized message for "Page not found"

"Page not found" was hardcoded in the JSX fragment for the NotFoundPage component.