diff --git a/package.json b/package.json index 7abc5fa4..858fc0f4 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "express": "^4.16.1", "flow-bin": "^0.41.0", "jest": "^21.2.1", - "react": "^16.0.0", + "react": "16.3.0", "react-dom": "^16.0.0", "react-test-renderer": "^16.0.0", "webpack": "^3.6.0" diff --git a/src/index.js b/src/index.js index 14b5bfa3..82bfd87b 100644 --- a/src/index.js +++ b/src/index.js @@ -158,7 +158,7 @@ function createLoadableComponent(loadFn, options) { return init(); } - componentWillMount() { + UNSAFE_componentWillMount() { this._mounted = true; this._loadModule(); } diff --git a/yarn.lock b/yarn.lock index 2fcb0e32..cd983faf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3719,9 +3719,10 @@ react-test-renderer@^16.0.0: fbjs "^0.8.16" object-assign "^4.1.1" -react@^16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/react/-/react-16.0.0.tgz#ce7df8f1941b036f02b2cca9dbd0cb1f0e855e2d" +react@16.3.0: + version "16.3.0" + resolved "https://registry.yarnpkg.com/react/-/react-16.3.0.tgz#fc5a01c68f91e9b38e92cf83f7b795ebdca8ddff" + integrity sha512-Qh35tNbwY8SLFELkN3PCLO16EARV+lgcmNkQnoZXfzAF1ASRpeucZYUwBlBzsRAzTb7KyfBaLQ4/K/DLC6MYeA== dependencies: fbjs "^0.8.16" loose-envify "^1.1.0"