React Hookers - v6.3.0
    Preparing search index...

    Function useMediaQuery

    • Returns true if the window matches the given media query, or false otherwise.

      Parameters

      • query: string

        The media query to evaluate.

      • OptionalinitialValue: boolean

        The value returned during the initial render.

      Returns boolean

      const isMatched = useMediaQuery('(min-width: 600px)');