check if window exists to avoid crash during server-side render
check if window exists to avoid crash during server-side render

buildo/react-components,buildo/react-components,buildo/react-components,buildo/react-components