Comparing version 4.3.0 to 4.3.1
@@ -6,4 +6,4 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import PropTypes from 'prop-types'; | ||
import { createPortal } from 'react-dom'; | ||
@@ -55,3 +55,3 @@ var Portal = function (_React$Component) { | ||
if (this._container) { | ||
return createPortal(this.props.children, this._container); | ||
return ReactDOM.createPortal(this.props.children, this._container); | ||
} | ||
@@ -58,0 +58,0 @@ return null; |
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _reactDom = require('react-dom'); | ||
var _reactDom2 = _interopRequireDefault(_reactDom); | ||
var _propTypes = require('prop-types'); | ||
@@ -32,4 +36,2 @@ | ||
var _reactDom = require('react-dom'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -81,3 +83,3 @@ | ||
if (this._container) { | ||
return (0, _reactDom.createPortal)(this.props.children, this._container); | ||
return _reactDom2['default'].createPortal(this.props.children, this._container); | ||
} | ||
@@ -84,0 +86,0 @@ return null; |
{ | ||
"name": "rc-util", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Common Utils For React Component", | ||
@@ -48,4 +48,4 @@ "keywords": [ | ||
"rc-tools": "6.x", | ||
"react": "15.x", | ||
"react-dom": "15.x" | ||
"react": "^16.2.0", | ||
"react-dom": "^16.2.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "pre-commit": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64306
2176