Custom hook to obtain the current window size in React apps.
⚓ hooks are good, making custom re-usable ones is better
Hook to get the viewport bounds (width and height)
Need to have some properties on your views with the current width and height of their main element? Here is the mixin which does this for you.