how to refresh the page using react

JavaScript
window.location.reload(false);
Source

Also in JavaScript: