New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-screen-responsive-hooks

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-screen-responsive-hooks

A simple React hooks kit for handling window size, breakpoints, orientation, and media queries in responsive layouts.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

React Screen Responsive Hooks

A simple React hooks library for handling window size, breakpoints, orientation, and media queries in responsive layouts.

✅ Installation

npm install react-screen-responsive-hooks

✅ Usage Example

import {
  useBreakpoint,
  useIsMobile,
  useMediaQuery,
  useOrientation,
  useWindowSize
} from "react-screen-responsive-hooks";

function App() {
  const breakpoint = useBreakpoint();
  const isMobile = useIsMobile();
  const isLargeScreen = useMediaQuery("(min-width: 1024px)");
  const orientation = useOrientation();
  const { width, height } = useWindowSize();

  return (
    <div>
      <p>Breakpoint: {breakpoint}</p>
      <p>Is Mobile: {isMobile ? "Yes" : "No"}</p>
      <p>Large Screen: {isLargeScreen ? "Yes" : "No"}</p>
      <p>Orientation: {orientation}</p>
      <p>Window Size: {width} x {height}</p>
    </div>
  );
}

export default App;

Keywords

react

FAQs

Package last updated on 15 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts