How to setpup hot-relaoding properly

I want to setup the hot-reloading properly, but I am not able to do it .
I referred to this discussion- Hot-reloading the Electron app?

but could understand it properly. Will be grateful for your help to setup properly for development testing and hence contribution.