---
title: "Discussion on \"Detecting clicks outside an HTML element using the custom React Hook\" | Hashnode"
description: "Discussion on \"Detecting clicks outside an HTML element using the custom React Hook\". Implementing a Custom Hook to Detect Outside Clicks"
url: "https://hashnode.com/posts/detecting-clicks-outside-an-html-element-using-the-custom-react-hook/63e7a46a97c68895db1763e9"
---

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

Discussion

# [Detecting clicks outside an HTML element using the custom React Hook](https://blog.hamzaa.dev/detecting-clicks-outside-an-html-element-using-the-custom-react-hook?utm_source=hashnode&utm_medium=feed)

Implementing a Custom Hook to Detect Outside Clicks

Feb 11, 2023 · 4 min read · blog.hamzaa.dev  
Read the article

-   [#hooks](https://hashnode.com/tag/hooks)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#html5](https://hashnode.com/tag/html5)

## Written by

[Hamza Ali](https://hashnode.com/@HAT52)

@HAT52 · Haripur, Pakistan

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

Tech enthusiast

Full stack Javascript Developer | Javascript, React, Typescript, Node/Express, MongoDB (MERN) ,SQL, PostgreSQL | Open source enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
