A React mixin to update state in response to media query events.