Skip to content

Releases: cvkline/use-media-set

Include support for React Server-side Rendering

09 Aug 00:10
Compare
Choose a tag to compare

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

04 May 20:50
Compare
Choose a tag to compare

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.