how to windows reload current component based on previous component reactjs code example Example: how to refresh the page using react window.location.reload(false);