()
| 129 | }; |
| 130 | |
| 131 | componentDidMount() { |
| 132 | if (!canUseDOM) return; |
| 133 | |
| 134 | if (!isReact16) { |
| 135 | this.node = createHTMLElement("div"); |
| 136 | } |
| 137 | this.node.className = this.props.portalClassName; |
| 138 | |
| 139 | const parent = getParentElement(this.props.parentSelector); |
| 140 | parent.appendChild(this.node); |
| 141 | |
| 142 | !isReact16 && this.renderPortal(this.props); |
| 143 | } |
| 144 | |
| 145 | getSnapshotBeforeUpdate(prevProps) { |
| 146 | const prevParent = getParentElement(prevProps.parentSelector); |
nothing calls this directly
no test coverage detected