react mixin to recalculate width on resize