UNPKG

@infinityfx/fluid

Version:

React UI library, using zero-runtime CSS-in-JS.

4 lines (3 loc) 310 B
"use client"; import{useState as e,useEffect as t}from"react";function n(n){const[r,a]=e(!1),c=e=>a(e.matches);return t((()=>{const e=window.matchMedia(n);return c(e),e.addEventListener("change",c),()=>e.removeEventListener("change",c)}),[]),r}export{n as default}; //# sourceMappingURL=use-media-query.js.map