code: function ErrorMessage({ state, error, clearError }) {
    return (
      <>
        <h1 style={{ color: "red" }}>{error.message}</h1>
        <button onClick={() => clearError()}>Try Again</button>
        <pre>{JSON.stringify(state, null, 2)}</pre>
      </>
    )
  }
docs: a component for displaying an error message