How to reconnect Blynk to WiFi, when internet restarts

When a power cut occurs in my house, my router has a tendency to disconnect from time to time, and then the nodeMCU, doesnt reconnect to the internet, and the console just proceeds to show:

Connecting to blynk-cloud.com:8442

The issue is very similar to this: Check connection status in loop and reconect.
But I am having trouble understanding this thread and hence needed your help. Sorry for being a noob :stuck_out_tongue:

Welcome to the community. There are examples on connection management in the docs that do exactly what you want. Could you go through them please?