---
title: "Discussion on \"How to check internet connection(online or offline) in React\" | Hashnode"
description: "Discussion on \"How to check internet connection(online or offline) in React\". To check the internet connection in React application, you can use the navigator.onLine property which returns a Boolean indicating whether the browser is online or offline. You can add event listeners for the online and offline events and update the..."
url: "https://hashnode.com/posts/how-to-check-internet-connectiononline-or-offline-in-react/64c500b180dc13de84baf6d5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to check internet connection(online or offline) in React](https://sayuj.hashnode.dev/how-to-check-internet-connectiononline-or-offline-in-react?utm_source=hashnode&utm_medium=feed)

To check the internet connection in React application, you can use the navigator.onLine property which returns a Boolean indicating whether the browser is online or offline. You can add event listeners for the online and offline events and update the...

Jul 29, 2023 · 3 min read · sayuj.hashnode.dev  
Read the article

-   [#check-internet-connection-in-react](https://hashnode.com/tag/check-internet-connection-in-react)
-   [#online-offline-react](https://hashnode.com/tag/online-offline-react)

## Written by

[Sayuj Sehgal](https://hashnode.com/@sayuj1)

@sayuj1

  
[View profile](https://hashnode.com/@sayuj1)

Once a developer always a developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
