diff --git a/src/index.js b/src/index.js index 4db9c23..7747d0f 100755 --- a/src/index.js +++ b/src/index.js @@ -93,7 +93,7 @@ export default class RedBox extends Component { this.renderRedBoxError() } componentWillUnmount () { - React.unmountComponentAtNode(this.el) + ReactDOM.unmountComponentAtNode(this.el) document.body.removeChild(this.el) this.el = null }