I have a observable win in Mobx which gets updated when the window gets resized. updateWin function updates the win observable.
win
updateWin