
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
react-screen-responsive-hooks
Advanced tools
A simple React hooks kit for handling window size, breakpoints, orientation, and media queries in responsive layouts.
A simple React hooks library for handling window size, breakpoints, orientation, and media queries in responsive layouts.
npm install react-screen-responsive-hooks
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;
FAQs
A simple React hooks kit for handling window size, breakpoints, orientation, and media queries in responsive layouts.
The npm package react-screen-responsive-hooks receives a total of 2 weekly downloads. As such, react-screen-responsive-hooks popularity was classified as not popular.
We found that react-screen-responsive-hooks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.