Check out example codes for "refresh button html". It will help you in understanding the concepts better.

Code Example 1

<button onClick="window.location.reload();">Refresh Page</button>

Code Example 2

const reloadtButton = document.querySelector("#reload");
// Reload everything:
function reload() {
    reload = location.reload();
}
// Event listeners for reload
reloadButton.addEventListener("click", reload, false);

Learn ReactJs, React Native from akashmittal.com