React mixin to handle media queries