If this is all you need functionality wise, then I think that's fine - no need for matchMedia unless you are looking to bind/unbind on breakpoints.