Releases: cvkline/use-media-set
Releases · cvkline/use-media-set
Include support for React Server-side Rendering
Added second argument to the hook so that a default set of matching queries can be returned if mediaMatch
is not present (as it will not be on SSR). Previously, an empty Set was returned in that case, which may not lead to an appropriate responsive configuration for a server-side render.
Adds JS syntax for expressing media queries
This minor release adds new functionality to allow media queries to be written not only as strings in the customary syntax, but also as JavaScript objects or arrays, which should make it easier and more natural to express queries and responsive breakpoints in your code.
It's fully documented in the README file.