useconnectionchecker (npm): this hook retruns a state which has true as default value. whenever internet connection lost, this state value, changed to false.
Keywords: react|internet connection|javascript