()
| 219 | }; |
| 220 | |
| 221 | render() { |
| 222 | if (!canUseDOM || !isReact16) { |
| 223 | return null; |
| 224 | } |
| 225 | |
| 226 | if (!this.node && isReact16) { |
| 227 | this.node = createHTMLElement("div"); |
| 228 | } |
| 229 | |
| 230 | const createPortal = getCreatePortal(); |
| 231 | return createPortal( |
| 232 | <ModalPortal |
| 233 | ref={this.portalRef} |
| 234 | defaultStyles={Modal.defaultStyles} |
| 235 | {...this.props} |
| 236 | />, |
| 237 | this.node |
| 238 | ); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | polyfill(Modal); |
nothing calls this directly
no test coverage detected