React integration
Browser connectivity subscription
Observe online/offline hints, not proof of backend availability.
Formal Syntax & Structure
react syntaxreact
const getSnapshot = () => navigator.onLineWorking Example
Example Snippetreact
const getSnapshot = () => navigator.onLine