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/MUIDataTable.js b/src/MUIDataTable.js index 73b2d5a41..d20089c58 100644 --- a/src/MUIDataTable.js +++ b/src/MUIDataTable.js @@ -208,7 +208,7 @@ class MUIDataTable extends React.Component { this.updateDividers = () => {}; } - componentWillMount() { + UNSAFE_componentWillMount() { this.initializeTable(this.props); } 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; }