{"id":28444207,"url":"https://github.com/bence-toth/react-hook-media-query","last_synced_at":"2025-06-29T17:32:36.073Z","repository":{"id":46004271,"uuid":"171360423","full_name":"bence-toth/react-hook-media-query","owner":"bence-toth","description":"A React hook to match media queries","archived":false,"fork":false,"pushed_at":"2021-11-21T11:45:48.000Z","size":84,"stargazers_count":11,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T09:08:14.898Z","etag":null,"topics":["media-queries","react","react-hooks"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bence-toth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-18T21:43:31.000Z","updated_at":"2022-08-01T19:38:22.000Z","dependencies_parsed_at":"2022-09-16T15:51:04.949Z","dependency_job_id":null,"html_url":"https://github.com/bence-toth/react-hook-media-query","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bence-toth/react-hook-media-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bence-toth%2Freact-hook-media-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bence-toth%2Freact-hook-media-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bence-toth%2Freact-hook-media-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bence-toth%2Freact-hook-media-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bence-toth","download_url":"https://codeload.github.com/bence-toth/react-hook-media-query/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bence-toth%2Freact-hook-media-query/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262637464,"owners_count":23341145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["media-queries","react","react-hooks"],"created_at":"2025-06-06T09:08:09.386Z","updated_at":"2025-06-29T17:32:36.058Z","avatar_url":"https://github.com/bence-toth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-hook-media-query :triangular_ruler:\n\nA React hook to match media queries.\n\n## Installation\n\nUsing `npm`:\n\n```sh\nnpm install --save react-hook-media-query\n```\n\nUsing `yarn`:\n\n```sh\nyarn add react-hook-media-query\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport useMediaQuery from 'react-hook-media-query'\n\nconst ComponentWithMediaQuery = () =\u003e {\n  const small = useMediaQuery('(max-width: 720px)')\n\n  return (\n    \u003cp\u003eViewport width is {small ? 'below' : 'above'} 720.\u003c/p\u003e\n  )\n}\n```\n\n## Contributions\n\nContributions are welcome. File bug reports, create pull requests, feel free to reach out at tothab@gmail.com.\n\n## Licence\n\nLGPL-3.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbence-toth%2Freact-hook-media-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbence-toth%2Freact-hook-media-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbence-toth%2Freact-hook-media-query/lists"}