How to use Error Boundaries in React 16
Have you seen these in your console?
Cannot read property ‘getHostNode’ of null ?
TypeError: Cannot read property ‘_currentElement’ of null ?
If you maintain a React application, you know that this class of error messages can be among the most frustrating and difficult to resolve. Typical symptoms include stack traces that thread through dark regions of the React internals, devoid of hope or references to even a single line of your own code:
TypeError: Cannot read property 'getHostNode' of null ?
at getHostNode(~/react/lib/ReactReconciler.js:64:0)
at getHostNode(~/react/lib/ReactCompositeComponent.js:383:0) ?
at getHostNode(~/react/lib/ReactReconciler.js:64:0)
at getHostNode(~/react/lib/ReactChildReconciler.js:114:0)?
at updateChildren(~/react/lib/ReactMultiChild.js:215:0)
at _...