Atualizar a página à mão no React

import React from 'react';

function App() {
  
  function refreshPage() {
    window.location.reload();
  }
  
  return (
    <div>
      <button onClick={ refreshPage }>Refresh!</button>
    </div>
  );
}

export default App;
Cautious Caterpillar