diff --git a/docs/utils/withRoot.js b/docs/utils/withRoot.js index d82df6ceb..eace25ce3 100644 --- a/docs/utils/withRoot.js +++ b/docs/utils/withRoot.js @@ -5,7 +5,7 @@ import getPageContext from './getPageContext'; function withRoot(Component) { class WithRoot extends React.Component { - componentWillMount() { + UNSAFE_componentWillMount() { this.pageContext = this.props.pageContext || getPageContext(); } diff --git a/src/components/Popover.js b/src/components/Popover.js index 29bc6fa50..a91231683 100644 --- a/src/components/Popover.js +++ b/src/components/Popover.js @@ -8,7 +8,7 @@ class Popover extends React.Component { open: false, }; - componentWillMount() { + UNSAFE_componentWillMount() { this.anchorEl = null; }