3.0.5 • Published 3 months ago
@spellix/use-media-query v3.0.5
@spellix/use-media-query
A Quick description of the hook
This hook is generated automatically, please add a description and usage instructions below.
Short description
Hook is made to react on screen changes
Installation
yarn add @spellix/use-media-query
# or
npm i @spellix/use-media-query
# or
pnpm i @spellix/use-media-query
Usage
Import useMediaQuery
from the package and configure it with props as needed:
import { useMediaQuery } from '@spellix/use-media-query';
export const App = () => {
const { /* hook return values */ } = useMediaQuery({/* hook arguments */});
return (
<>
{/* component */}
</>
);
};