MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / componentWillUnmount

Method componentWillUnmount

src/Portal.js:12–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11class Portal extends React.Component {
12 componentWillUnmount() {
13 if (this.defaultNode) {
14 document.body.removeChild(this.defaultNode);
15 }
16 this.defaultNode = null;
17 }
18
19 render() {
20 if (!canUseDOM) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected