---
title: "Discussion on \"Detecting Mobile Screen Size in React Using useEffect and window.matchMedia\" | Hashnode"
description: "Discussion on \"Detecting Mobile Screen Size in React Using useEffect and window.matchMedia\". Learn to detect mobile screen size in React with useState, useEffect & window.matchMedia for real-time updates and responsive UI"
url: "https://hashnode.com/posts/detecting-mobile-screen-size-in-react-using-useeffect-and-windowmatchmedia/675555b832d53ebc19340445"
---

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

Discussion

# [Detecting Mobile Screen Size in React Using useEffect and window.matchMedia](https://jatin-devopw.hashnode.dev/detecting-mobile-screen-size-in-react-using-useeffect-and-windowmatchmedia?utm_source=hashnode&utm_medium=feed)

Learn to detect mobile screen size in React with useState, useEffect & window.matchMedia for real-time updates and responsive UI

Dec 8, 2024 · 2 min read · jatin-devopw.hashnode.dev  
Updated Dec 16, 2024  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#useeffect](https://hashnode.com/tag/useeffect)
-   [#responsive-web-design](https://hashnode.com/tag/responsive-web-design)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Jatin shankar Srivastava](https://hashnode.com/@shankarjatin)

@shankarjatin

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

dev with pen

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
