From 60687f1718a0917558a882a41aacc6c4d0639c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C3=ADas=20Alonso=20G=2E-Cornejo?= Date: Thu, 30 Jun 2016 17:20:09 +0200 Subject: [PATCH] fix(unmount): typo on componentWillUnmount --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }