actualiser la page à la main dans 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