Make it work when rendered in server
Make it work when rendered in server

Looks like `window` is not defined when pre-rendering the component on the server. This change allows the awesome `react-motion-ui-pack` to be used in isomorphic apps.

I hope this is useful!
Philipp91/react-measure,Philipp91/react-measure,souporserious/react-measure