react force reload code example
Example 1: how to refresh the page using react
window.location.reload(false);
Example 2: React best way of forcing component to update
this.forceUpdate();
window.location.reload(false);
this.forceUpdate();