diff --git a/src/addons/Responsive/Responsive.js b/src/addons/Responsive/Responsive.js index d0c299c6f5..6f1d0add7a 100644 --- a/src/addons/Responsive/Responsive.js +++ b/src/addons/Responsive/Responsive.js @@ -7,6 +7,7 @@ import { eventStack, getElementType, getUnhandledProps, + isBrowser, META, } from '../../lib' @@ -55,7 +56,8 @@ export default class Responsive extends Component { constructor(...args) { super(...args) - this.state = { width: window.innerWidth } + + this.state = { width: isBrowser ? window.innerWidth : 0 } } componentDidMount() {