---
title: "Discussion on \"Managing global DOM events in React with Hooks\" | Hashnode"
description: "Discussion on \"Managing global DOM events in React with Hooks\". Creating UI components like dialog, modal, or drawers mostly requires adding keyboard accessibilities like closing them when ESC (escape) key is pressed, and doing so may require you to attach an event listener on Window object for keyup event inside..."
url: "https://hashnode.com/posts/managing-global-dom-events-in-react-with-hooks/5fcb4cd27865da78339e5dea"
---

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

Discussion

# [Managing global DOM events in React with Hooks](https://navicstein.hashnode.dev/managing-global-dom-events-in-react-with-hooks?utm_source=hashnode&utm_medium=feed)

Creating UI components like dialog, modal, or drawers mostly requires adding keyboard accessibilities like closing them when ESC (escape) key is pressed, and doing so may require you to attach an event listener on Window object for keyup event inside...

Dec 4, 2020 · 4 min read · navicstein.hashnode.dev  
Read the article

## Written by

[Navicstein rotciv](https://hashnode.com/@Navicstein)

@Navicstein · 🌍 Nigeria

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

Fullstack web & Mobile developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
